Skip to content

Commit ebc6ce5

Browse files
committed
feat: Additions to regex
1 parent 96874d3 commit ebc6ce5

File tree

6 files changed

+257
-5
lines changed

6 files changed

+257
-5
lines changed

syntaxes/regexp.tmLanguage.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@
3030
"L:source.json.comments.embedded .meta.tasks. .meta.tasks. meta.structure.array.json.comments .meta.problemMatcher. .meta.pattern. .meta.regexp. string.quoted.double.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments .meta.problemMatcher.\n-meta.structure.array.json.comments meta.structure.array.json.comments meta.structure.array.json.comments .meta.pattern.\n-.meta.pattern. meta.structure.array.json.comments meta.structure.array.json.comments\n-.meta.regexp. meta.structure.array.json.comments\n-meta.embedded.json.regexp -comment",
3131
"L:source.json.comments.embedded .meta.problemMatcher. .meta.background. meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments .meta.regexp. string.quoted.double.json.comments\n(.meta.beginsPattern. | .meta.endsPattern.)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.json.regexp -comment",
3232
"L:source.json.comments.embedded .meta.problemMatcher. .meta.background. meta.structure.dictionary.json.comments string.quoted.double.json.comments\n(.meta.beginsPattern. | .meta.endsPattern.)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.json.regexp -comment",
33-
"L:source.json.comments.embedded .meta.problemMatcher. .meta.pattern. .meta.regexp. string.quoted.double.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.structure.array.json.comments .meta.pattern.\n-.meta.regexp. meta.structure.array.json.comments\n-meta.embedded.json.regexp -comment"
33+
"L:source.json.comments.embedded .meta.problemMatcher. .meta.pattern. .meta.regexp. string.quoted.double.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.structure.array.json.comments .meta.pattern.\n-.meta.regexp. meta.structure.array.json.comments\n-meta.embedded.json.regexp -comment",
34+
"L:source.json.comments.embedded .meta.editor.minimap.markSectionHeaderRegex. string.quoted.double.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments\n-meta.embedded.json.regexp -comment",
35+
"L:source.json.comments.embedded .meta.settings. .meta.editor.minimap.markSectionHeaderRegex. string.quoted.double.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments\n-meta.embedded.json.regexp -comment",
36+
"L:source.json.comments.embedded meta.structure.dictionary.json.comments meta.structure.array.json.comments string.quoted.double.json.comments\n(.meta.cSpell.ignoreRegExpList. | .meta.cSpell.includeRegExpList.)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.json.regexp -comment",
37+
"L:source.json.comments.embedded .meta.settings. meta.structure.dictionary.json.comments meta.structure.array.json.comments string.quoted.double.json.comments\n(.meta.cSpell.ignoreRegExpList. | .meta.cSpell.includeRegExpList.)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.json.regexp -comment",
38+
"L:source.json.comments.embedded .meta.portsAttributes. meta.structure.dictionary.json.comments support.type.property-name.json\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments\n-meta.embedded.json.regexp -comment"
3439
],
3540
"patterns": [
3641
{ "include": "#regex" }

syntaxes/tests/JSONC/devcontainer.json.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
> "3000": {
2424
#^^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.portsAttributes. meta.structure.dictionary.value.json.comments meta.structure.dictionary.json.comments
2525
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.portsAttributes. meta.structure.dictionary.value.json.comments meta.structure.dictionary.json.comments .meta.3000. string.json.comments support.type.property-name.json.comments punctuation.support.type.property-name.begin.json.comments
26-
# ^^^^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.portsAttributes. meta.structure.dictionary.value.json.comments meta.structure.dictionary.json.comments .meta.3000. string.json.comments support.type.property-name.json.comments
26+
# ^^^^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.portsAttributes. meta.structure.dictionary.value.json.comments meta.structure.dictionary.json.comments .meta.3000. string.json.comments support.type.property-name.json.comments meta.embedded.json.regexp string.regexp.json
2727
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.portsAttributes. meta.structure.dictionary.value.json.comments meta.structure.dictionary.json.comments .meta.3000. string.json.comments support.type.property-name.json.comments punctuation.support.type.property-name.end.json.comments
2828
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.portsAttributes. meta.structure.dictionary.value.json.comments meta.structure.dictionary.json.comments .meta.3000. meta.structure.dictionary.value.json.comments punctuation.separator.dictionary.key-value.json.comments
2929
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.portsAttributes. meta.structure.dictionary.value.json.comments meta.structure.dictionary.json.comments .meta.3000. meta.structure.dictionary.value.json.comments

syntaxes/tests/JSONC/settings.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,50 @@
2121
"**/vscode-main",
2222
"**/achieve*.txt"
2323
],
24+
"cSpell.ignoreRegExpList": [
25+
"regexp",
26+
],
27+
"cSpell.includeRegExpList": [
28+
"regexp",
29+
],
2430
"cSpell.overrides": [
2531
{
2632
"filename": [
2733
"TODO: glob **/*",
2834
],
35+
"patterns": [
36+
{
37+
"pattern": [
38+
"regexp",
39+
],
40+
},
41+
],
2942
},
3043
{
3144
"filename": "TODO: glob **/*",
45+
"patterns": [
46+
{
47+
"pattern": "regexp",
48+
},
49+
],
50+
},
51+
],
52+
"cSpell.patterns": [
53+
{
54+
"pattern": [
55+
"regexp",
56+
],
57+
},
58+
{
59+
"pattern": "regexp",
3260
},
3361
],
3462
"debug.javascript.autoAttachSmartPattern": [
3563
"${workspaceFolder}/**",
3664
"!**/node_modules/**",
3765
"**/$KNOWN_TOOLS$/**",
3866
],
67+
"editor.minimap.markSectionHeaderRegex": "\\bMARK:\\s*(?<separator>-?)\\s*(?<label>.*)$",
3968
"editor.tokenColorCustomizations": {
4069
"textMateRules": [
4170
{

0 commit comments

Comments
 (0)