Skip to content

Commit

Permalink
fix: Update proto3.tmLanguage.json to fix some syntax highlighting bugs
Browse files Browse the repository at this point in the history
This commit fixes the following issues:

1. The second method in service is not highlighted.
2. `option (.something.something)` is not highlighted.
  • Loading branch information
Greateapot committed Jul 17, 2024
1 parent 7b75c37 commit ef086d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntaxes/proto3.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
}
},
"optionStmt": {
"begin": "(option)\\s+(\\w+|\\(\\w+(\\.\\w+)*\\))(\\.\\w+)*\\s*(=)",
"begin": "(option)\\s+(\\w+|\\((\\.\\w+)*\\))(\\.\\w+)*\\s*(=)",
"beginCaptures": {
"1": {"name": "keyword.other.proto"},
"2": {"name": "support.other.proto"},
"2": {"name": "keyword.other.proto"},
"3": {"name": "support.other.proto"},
"4": {"name": "support.other.proto"},
"5": {"name": "keyword.operator.assignment.proto"}
Expand Down

0 comments on commit ef086d0

Please sign in to comment.