aboutsummaryrefslogtreecommitdiffstats
path: root/man.sublime-syntax
diff options
context:
space:
mode:
Diffstat (limited to 'man.sublime-syntax')
-rw-r--r--man.sublime-syntax18
1 files changed, 16 insertions, 2 deletions
diff --git a/man.sublime-syntax b/man.sublime-syntax
index cb38ccc..e03aa83 100644
--- a/man.sublime-syntax
+++ b/man.sublime-syntax
@@ -17,8 +17,7 @@ variables:
contexts:
main:
- - match: '{{cc}}{{macro}}'
- scope: keyword.control.man
+ - match: (?={{cc}})
push: macros
- match: '{{cc}}(?={{font_style}})\b'
@@ -43,6 +42,18 @@ contexts:
macros:
+ - match: '{{cc}}{{macro}}'
+ scope: keyword.control.man
+ push: macros_line
+ pop: true
+
+ - match: '{{cc}}\w+\b'
+ scope: support.function.groff
+ push: macros_line
+ pop: true
+
+
+ macros_line:
- match: '"'
scope: punctuation.definition.string.begin.man
push: string
@@ -50,6 +61,9 @@ contexts:
- match: '{{numeric}}'
scope: constant.numeric.man
+ - match: \w
+ scope: variable.parameter.man
+
- match: $
pop: true