Skip to content

Commit

Permalink
Fix the syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
melaasar committed Nov 8, 2024
1 parent 74131d5 commit 4b52387
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions extension/syntaxes/oml.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,25 @@
"fileTypes": ["oml"],
"patterns": [
{
"name": "keyword.other.oml",
"match": "(?:^|\\W)(?<!\\^|:|@)(all|annotation|as|aspect|asymmetric|builtIn|builtin|bundle|concept|description|differentFrom|domain|entity|exactly|extends|forward|from|functional|includes|instance|inverse|irreflexive|key|language|length|max|maxExclusive|maxInclusive|maxLength|min|minExclusive|minInclusive|minLength|oneOf|pattern|property|range|ref|reflexive|relation|restricts|reverse|rule|sameAs|scalar|self|some|symmetric|to|transitive|uses|vocabulary)\\b"
"name": "string.quoted.triple.oml",
"begin": "'''",
"end": "'''"
},
{
"name": "keyword.other.oml",
"match": "$|&|,|->|<\\W|=|@|\\^"
"name": "string.quoted.triple.oml",
"begin": "\"\"\"",
"end": "\"\"\""
},
{
"name": "string.quoted.double.oml",
"begin": "\"",
"end": "\""
},
{
"name": "constant.other.oml",
"begin": "<",
"end": ">"
},
{
"name": "string.quoted.single.oml",
"begin": "'",
"end": "'"
},
{
"name": "string.quoted.triple.oml",
"begin": "'''",
"end": "'''"
},
{
"name": "comment.line.oml",
"match": "//.+$"
Expand All @@ -39,6 +31,19 @@
"name": "comment.block.oml",
"begin": "/\\*",
"end": "\\*/"
},
{
"name": "keyword.other.oml",
"match": "$|&|,|->|<\\W|=|@|\\^"
},
{
"name": "keyword.other.oml",
"match": "(?:^|\\W)(?<!\\^|:|@)(all|annotation|as|aspect|asymmetric|builtIn|builtin|bundle|concept|description|differentFrom|domain|entity|exactly|extends|forward|from|functional|includes|instance|inverse|irreflexive|key|language|length|max|maxExclusive|maxInclusive|maxLength|min|minExclusive|minInclusive|minLength|oneOf|pattern|property|range|ref|reflexive|relation|restricts|reverse|rule|sameAs|scalar|self|some|symmetric|to|transitive|uses|vocabulary)\\b"
},
{
"name": "constant.other.oml",
"begin": "<",
"end": ">"
}
]
}

0 comments on commit 4b52387

Please sign in to comment.