Skip to content

Commit 588441d

Browse files
authored
Merge pull request #3903 from slevithan/fix-regex
Fix regex in CodeQL TextMate grammar that was silently failing
2 parents a4a6e02 + a6266bb commit 588441d

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

extensions/ql-vscode/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
## 1.17.1 - 23 January 2025
66

77
- Remove support for CodeQL CLI versions older than 2.18.4. [#3895](https://github.com/github/vscode-codeql/pull/3895)
8+
- Fix regex in CodeQL TextMate grammar that was silently failing. [#3903](https://github.com/github/vscode-codeql/pull/3903)
89

910
## 1.17.0 - 20 December 2024
1011

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ repository:
10651065
beginPattern: '#as'
10661066
# Ends after the first identifier we encounter.
10671067
# REVIEW: Make similar to import-as-clause.
1068-
end: '(?<=(?#id-character)(?#end-of-id))'
1068+
end: '(?<=(?#id-character))(?#end-of-id)'
10691069
match: meta.block.select-as-clause.ql
10701070
patterns:
10711071
- include: '#non-context-sensitive'

syntaxes/ql.tmLanguage.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -675,9 +675,6 @@
675675
"begin": "(?x)(?<=/\\*\\*)([^*]|\\*(?!/))*$",
676676
"while": "(?x)(^|\\G)\\s*([^*]|\\*(?!/))(?=([^*]|[*](?!/))*$)",
677677
"patterns": [
678-
679-
680-
681678
{
682679
"match": "(?x)\\G\\s* (@\\S+)",
683680
"name": "keyword.tag.ql"
@@ -1469,7 +1466,7 @@
14691466
}
14701467
},
14711468
"select-as-clause": {
1472-
"end": "(?x)(?<=(?:[0-9A-Za-z_])(?:(?!(?:[0-9A-Za-z_]))))",
1469+
"end": "(?x)(?<=(?:[0-9A-Za-z_]))(?:(?!(?:[0-9A-Za-z_])))",
14731470
"match": "(?x)meta.block.select-as-clause.ql",
14741471
"patterns": [
14751472
{
@@ -1540,4 +1537,4 @@
15401537
"name": "constant.character.escape.ql"
15411538
}
15421539
}
1543-
}
1540+
}

0 commit comments

Comments
 (0)