on master help sign in
Add simple /proc/cpuinfo syntax, see #593
commit77ff8537391d0661f8f3938f06ee24cd1bdf20be authorsharkdp <davidpeter@web.de> dateSun 22 Dec 2019, 16:22 (7 years ago) parent20ba984
1 file changed+14
assets/syntaxes/CpuInfo.sublime-syntax+14
assets/syntaxes/CpuInfo.sublime-syntaxnew file+14
@@ -0,0 +1,14 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: CpuInfo
5+file_extensions:
6+ - cpuinfo
7+scope: source.cpuinfo
8+
9+contexts:
10+ main:
11+ - match: '^([^:]+)\w*:\w*(.*)$'
12+ captures:
13+ 1: keyword.other.cpuinfo-key
14+ 2: string.other.cpuinfo-value