summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-05-26 22:03:55 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-05-26 22:03:55 +0200
commit6f27d729abea11dd716ebdc7da16af3fda5996d2 (patch)
tree21aa039e0954084718c187deb8d4ab47c32505be
parent700990b7ba69081007d253e2cf3aa9c015a6599c (diff)
init
-rw-r--r--eo.sublime-syntax14
1 files changed, 13 insertions, 1 deletions
diff --git a/eo.sublime-syntax b/eo.sublime-syntax
index 8e87440..cf92ec3 100644
--- a/eo.sublime-syntax
+++ b/eo.sublime-syntax
@@ -7,9 +7,11 @@ scope: eo
7contexts: 7contexts:
8 main: 8 main:
9 - include: struct 9 - include: struct
10 - include: function
10 - include: enum 11 - include: enum
11 - include: class 12 - include: class
12 - include: import 13 - include: import
14 - include: comments
13 import: 15 import:
14 - match: "import" 16 - match: "import"
15 scope: keyword.other 17 scope: keyword.other
@@ -179,6 +181,16 @@ contexts:
179 - match: "=" 181 - match: "="
180 - match: "(\\+|\\-|\\/|\\*|\\<<|\\>>|\\(|\\))" 182 - match: "(\\+|\\-|\\/|\\*|\\<<|\\>>|\\(|\\))"
181 - match: "," 183 - match: ","
184#function
185 function:
186 - match: "function "
187 scope: keyword.other
188 set: [function.body, curly_brace_open, typename]
189 function.body:
190 - include: "comments"
191 - match : "params"
192 scope: keyword.other
193 pop: true
182 194
183#struct matcher 195#struct matcher
184 struct: 196 struct:
@@ -189,7 +201,7 @@ contexts:
189 struct.def: 201 struct.def:
190 - match: ";" 202 - match: ";"
191 pop: true 203 pop: true
192 - match: curly_brace_open 204 - match: '{'
193 set: [struct.body] 205 set: [struct.body]
194 206
195 struct.body: 207 struct.body: