Skip to content

Commit

Permalink
Fixed not handling enums and flags correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Durza007 committed Aug 30, 2019
1 parent 6c06ae5 commit fd8e9b3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## 1.0.3
- Fixed not handling enums and flags correctly

## 1.0.2
- Fixed not higlighting record extensions correctly

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "djinni-syntax-highlighting",
"displayName": "Djinni Syntax Highlighting",
"description": "Syntax highlighting for djinni interface files",
"version": "1.0.2",
"version": "1.0.3",
"publisher": "patrikminder",
"author": {
"name": "Patrik Minder"
Expand Down
32 changes: 23 additions & 9 deletions syntaxes/djinni.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,19 @@
"end": "}",
"patterns": [
{
"begin": "(\\w+)(;)",
"begin": "(\\w+)",
"beginCaptures": {
"1": { "name": "variable.name" },
"2": { "name": "keyword.operator.djinni" }
"1": { "name": "variable.name" }
},
"end": ""
"end": "(;)",
"endCaptures": {
"1": { "name": "keyword.operator.djinni" }
},
"patterns": [
{
"include": "#comment"
}
]
},
{
"include": "#comment"
Expand All @@ -104,13 +111,20 @@
},
"patterns": [
{
"begin": "(\\w+)(\\s*(=)\\s*(none|all))?(;)",
"begin": "(\\w+)(\\s*(=)\\s*(none|all))?",
"beginCaptures": {
"1": { "name": "variable.name" },
"3": { "name": "keyword.operator.djinni" },
"4": { "name": "keyword.control.djinni" }
"3": { "name": "keyword.operator.djinni" }
},
"end": "(;)",
"endCaptures": {
"1": { "name": "keyword.control.djinni" }
},
"end": ""
"patterns": [
{
"include": "#comment"
}
]
},
{
"include": "#comment"
Expand Down Expand Up @@ -304,7 +318,7 @@
]
},
"numbers": {
"name": "",
"name": "constant.numeric.djinni",
"patterns": [
{
"match": "\\d+",
Expand Down

0 comments on commit fd8e9b3

Please sign in to comment.