Browse code

Updated syntax highlight to pickup the getters/setters and the previous word

neauoire authored on 23/04/2021 03:47:23
Showing 1 changed files
... ...
@@ -10,6 +10,34 @@ scope: source.usm
10 10
 
11 11
 contexts:
12 12
   main:
13
+
14
+    # get/set
15
+    - match: '\.(\S+)\sDEO2'
16
+      scope:  constant.numeric
17
+      pop: true
18
+    - match: '\.(\S+)\sDEO'
19
+      scope:  constant.numeric
20
+      pop: true
21
+    - match: '\.(\S+)\sPOK2'
22
+      scope:  constant.numeric
23
+      pop: true
24
+    - match: '\.(\S+)\sPOK'
25
+      scope:  constant.numeric
26
+      pop: true
27
+
28
+    - match: '\.(\S+)\sDEI2'
29
+      scope:  entity.name.type.typedef
30
+      pop: true
31
+    - match: '\.(\S+)\sDEI'
32
+      scope:  entity.name.type.typedef
33
+      pop: true
34
+    - match: '\.(\S+)\sPEK2'
35
+      scope:  entity.name.type.typedef
36
+      pop: true
37
+    - match: '\.(\S+)\sPEK'
38
+      scope:  entity.name.type.typedef
39
+      pop: true
40
+
13 41
     # label
14 42
     - match: '\@(\S+)\s?'
15 43
       scope: string.control
... ...
@@ -68,39 +96,3 @@ contexts:
68 96
         - meta_scope: comment.line
69 97
         - match: '\)'
70 98
           pop: true
71
-
72
-    # templated
73
-
74
-    - match: '(\S+)\^\!\s?'
75
-      scope: entity.name.type.typedef
76
-      pop: true
77
-    - match: '(\S+)\~\!\s?'
78
-      scope:  constant.numeric
79
-      pop: true
80
-    - match: '(\S+)\*\!\s?'
81
-      scope: entity.name.type.typedef
82
-      pop: true
83
-    - match: '(\S+)\=\!\s?'
84
-      scope:  constant.numeric
85
-      pop: true
86
-
87
-    - match: '(\S+)\^\s?'
88
-      scope: entity.name.type.typedef
89
-      pop: true
90
-    - match: '(\S+)\~\s?'
91
-      scope:  constant.numeric
92
-      pop: true
93
-    - match: '(\S+)\*\s?'
94
-      scope: entity.name.type.typedef
95
-      pop: true
96
-    - match: '(\S+)\=\s?'
97
-      scope:  constant.numeric
98
-      pop: true
99
-
100
-
101
-    - match: '(\S+)\?\s?'
102
-      scope: storage.type
103
-      pop: true
104
-    - match: '(\S+)\!\s?'
105
-      scope: constant.numeric
106
-      pop: true
107 99
\ No newline at end of file