Skip to content

Commit

Permalink
Syntax highlighting for pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
pdesaulniers committed Aug 24, 2024
1 parent 1bb6ae9 commit 7f0c10f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions syntaxes/teal.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"repository": {
"base": {
"patterns": [
{
"include": "#pragma"
},
{
"include": "#comment"
},
Expand All @@ -29,6 +32,24 @@
}
]
},
"pragma": {
"patterns": [
{
"begin": "--#pragma",
"beginCaptures": {
"0": {
"name": "keyword.control.directive.pragma.teal"
}
},
"end": ".*$",
"endCaptures": {
"0": {
"name": "entity.other.attribute-name.pragma.preprocessor.teal"
}
}
}
]
},
"comment": {
"patterns": [
{
Expand Down

0 comments on commit 7f0c10f

Please sign in to comment.