Skip to content

Commit d10fcd5

Browse files
committed
Include constants
1 parent d732575 commit d10fcd5

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

syntaxes/delphi.tmLanguage.json

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
},
1414
{
1515
"include": "#strings"
16+
},
17+
{
18+
"include": "#constants"
1619
}
1720
],
1821
"repository": {
@@ -23,15 +26,23 @@
2326
}]
2427
},
2528
"strings": {
26-
"name": "string.quoted.double.delphi",
27-
"begin": "\"",
28-
"end": "\"",
29+
"name": "string.quoted.single.dfm",
30+
"begin": "'",
31+
"end": "'",
2932
"patterns": [
30-
{
31-
"name": "constant.character.escape.delphi",
32-
"match": "\\\\."
33-
}
33+
3434
]
35+
},
36+
"constants": {
37+
"patterns": [{
38+
"name": "constant.numeric.dfm",
39+
"match": "\\W\\d+"
40+
},
41+
{
42+
"name": "constant.language.dfm",
43+
"match": "([Tt]rue|[Ff]alse)"
44+
}
45+
]
3546
}
3647
},
3748
"scopeName": "source.dfm"

0 commit comments

Comments
 (0)