Skip to content

Commit

Permalink
Merge pull request #2809 from gitpaladin/missing-pb-syntax-directive
Browse files Browse the repository at this point in the history
Fix token while missing `syntax=` directive
  • Loading branch information
alexdima authored Dec 9, 2021
2 parents e778250 + c938ee0 commit 7eee448
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/basic-languages/protobuf/protobuf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ export const language = <languages.IMonarchLanguage>{
[
/(")(proto2)(")/,
['string.quote', 'string', { token: 'string.quote', switchTo: '@topLevel.proto2' }]
],
[
// If no `syntax` provided, regarded as proto2
/.*?/,
{ token: '', switchTo: '@topLevel.proto2' }
]
],

Expand Down

0 comments on commit 7eee448

Please # to comment.