Skip to content

Commit 7ea6cd8

Browse files
authored
Merge pull request #2609 from github/ginsbach/AdditionalAndDefaultKeywords
add `additional` and `default` keywords to the TextMate grammar
2 parents 5631d33 + e1e55d1 commit 7ea6cd8

File tree

3 files changed

+1512
-1490
lines changed

3 files changed

+1512
-1490
lines changed

extensions/ql-vscode/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [UNRELEASED]
44

5+
- Implement syntax highlighting for the `additional` and `default` keywords. [#2609](https://github.com/github/vscode-codeql/pull/2609)
6+
57
## 1.8.7 - 29 June 2023
68

79
- Show a run button on the file tab for query files, that will start a local query. This button will only show when a local database is selected in the extension. [#2544](https://github.com/github/vscode-codeql/pull/2544)

extensions/ql-vscode/syntaxes/ql.tmLanguage.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,12 @@ repository:
508508
match:
509509
keyword: 'abstract'
510510
name: storage.modifier.abstract.ql
511-
511+
512+
additional:
513+
match:
514+
keyword: 'additional'
515+
name: storage.modifier.additional.ql
516+
512517
bindingset:
513518
match:
514519
keyword: 'bindingset'
@@ -519,11 +524,16 @@ repository:
519524
keyword: 'cached'
520525
name: storage.modifier.cached.ql
521526

527+
default:
528+
match:
529+
keyword: 'default'
530+
name: storage.modifier.default.ql
531+
522532
deprecated:
523533
match:
524534
keyword: 'deprecated'
525535
name: storage.modifier.deprecated.ql
526-
536+
527537
external:
528538
match:
529539
keyword: 'external'
@@ -577,8 +587,10 @@ repository:
577587
annotation-keyword:
578588
patterns:
579589
- include: '#abstract'
590+
- include: '#additional'
580591
- include: '#bindingset'
581592
- include: '#cached'
593+
- include: '#default'
582594
- include: '#deprecated'
583595
- include: '#external'
584596
- include: '#final'

0 commit comments

Comments
 (0)