We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc2d70b commit b8f9ad0Copy full SHA for b8f9ad0
runtime/syntax/properties.yaml
@@ -0,0 +1,27 @@
1
+filetype: properties
2
+
3
+detect:
4
+ filename: "\\.properties$"
5
6
+rules:
7
+ # Key (Identifier) - Matches everything before the first = or :
8
+ - identifier: "^[[:space:]]*[^=:[:space:]]+"
9
10
+ # Assignment operators
11
+ - statement: "[=:]"
12
13
+ # Boolean constants
14
+ - constant: "\\b(true|false|TRUE|FALSE|yes|no|ON|OFF)\\b"
15
16
+ # Strings/Values (Simple match for text after assignment)
17
+ - constant.string: "([=:][[:space:]]*).*$"
18
19
+ # Comments - Properties files support both # and !
20
+ - comment:
21
+ start: "[#!]"
22
+ end: "$"
23
+ rules:
24
+ - todo: "(TODO|XXX|FIXME):?"
25
26
+ # Special characters like escaped spaces or newlines
27
+ - constant.specialChar: "\\\\([ tnfr'\"\\\\]|u[0-9a-fA-F]{4})"
0 commit comments