Skip to content

Commit

Permalink
Merge pull request #187 from KxSystems/KXI-28503
Browse files Browse the repository at this point in the history
fixes KXI-28503
  • Loading branch information
ecmel authored Nov 15, 2023
2 parents 8275453 + f2546ad commit 094240e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions syntaxes/q.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,49 @@
"begin": "^\\/\\s*$",
"end": "^\\\\\\s*$"
},
{
"include": "#qdoc"
},
{
"name": "comment.line.q",
"match": "(?:(?<=\\r?\\n|[ \\t])|(?<!.))\\/.*"
}
]
},
"qdoc": {
"patterns": [
{
"name": "comment.qdoc",
"begin": "(?:(?<=\\r?\\n|[ \\t])|(?<!.))\\/\\/",
"end": "\\r?\\n",
"patterns": [
{
"name": "storage.type.qdoc",
"match": "@\\b(?:author|category|deprecated|doctest|end|example|fileoverview|kind|name|private|see|subcategory|throws|todo|default-category|default-subcategory|typedef|fileOverview|param|desc|return[s]?|)\\b"
},
{
"name": "keyword.control.qdoc",
"begin": "{",
"end": "}",
"patterns": [
{
"name": "entity.name.type.qdoc",
"match": "\\b(type|atom|anything|dict|enum|function|hsym|option|string|table|tuple|typedef|vector|bool|boolean|byte|char|character|date|datetime|float|guid|int|integer|long|minute|month|real|second|short|string|symbol|time|timespan|timestamp)\\b"
}
]
},
{
"name": "variable.other.qdoc",
"match": "[\\w.]+?(?=\\s*{.+})"
},
{
"name": "variable.other.qdoc",
"match": "\\s\\.[\\w.]+?\\s"
}
]
}
]
},
"strings": {
"patterns": [
{
Expand Down

0 comments on commit 094240e

Please sign in to comment.