Skip to content

Commit 21500f0

Browse files
authored
Merge pull request #330 from dbartol/dbartol/unique-highlighting
Highlight `unique` as a keyword
2 parents e4df717 + efcf981 commit 21500f0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

extensions/ql-vscode/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CodeQL for Visual Studio Code: Changelog
22

3+
## 1.1.2
4+
5+
- Implement syntax highlighting for the new `unique` aggregate.
6+
37
## 1.1.1 - 23 March 2020
48

59
- Fix quick evaluation in `.qll` files.

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,11 @@ repository:
422422
keyword: 'true'
423423
name: constant.language.boolean.true.ql
424424

425+
unique:
426+
match:
427+
keyword: 'unique'
428+
name: keyword.aggregate.unique.ql
429+
425430
where:
426431
match:
427432
keyword: 'where'
@@ -478,6 +483,8 @@ repository:
478483
- include: '#then'
479484
- include: '#this'
480485
- include: '#true'
486+
# `unique` is not really a keyword, but we'll highlight it as if it is.
487+
- include: '#unique'
481488
- include: '#where'
482489

483490
# A keyword that can be the first token of a predicate declaration.

0 commit comments

Comments
 (0)