Highlight C code in all man pages sections

This commit is contained in:
Keith Hall authored and David Peter committed 2020-10-24 12:30:25 +02:00
1 parent 5b2da2b08d
commit 41e857ea16
4 files changed
+37 -29

No files matched your search

+5 -1
View File
@@ -83,6 +83,7 @@ contexts:
- match: ''
pop: true
- include: function-call
- include: c-code
expect-command-line-option:
- match: '[A-Za-z0-9-]+'
@@ -127,9 +128,12 @@ contexts:
- match: '$|(?=[],]|{{command_line_option}})'
pop: true
synopsis:
c-code:
- match: '^(?=\s+(?:#include|/\*))'
push: scope:source.c
synopsis:
- include: c-code
- match: \[
scope: punctuation.section.brackets.begin.man
push: command-line-option-or-pipe