on master help sign in
Add syslog-syntax
commit3b5174bb1d31621c9eef595c6c0cda0e827399f8 authorBenjamin Santos <caos21@gmail.com> dateThu 17 Jan 2019, 18:38 (8 years ago) parent3324505
3 files changed+46
.gitmodules+4 assets/syntaxes/syslog-syntax+1 assets/syntaxes/syslog.sublime-syntax+41
.gitmodules+4
@@ -106,3 +106,7 @@
106106[submodule "assets/syntaxes/Assembly (ARM)"]
107107 path = assets/syntaxes/Assembly (ARM)
108108 url = https://github.com/tvi/Sublime-ARM-Assembly
109+[submodule "assets/syntaxes/syslog-syntax"]
110+ path = assets/syntaxes/syslog-syntax
111+ url = https://github.com/caos21/syslog-syntax.git
112+ branch = master
assets/syntaxes/syslog-syntaxnew file+1

Submodule changed.

assets/syntaxes/syslog.sublime-syntaxnew file+41
@@ -0,0 +1,41 @@
1+%YAML 1.2
2+---
3+# http://www.sublimetext.com/docs/3/syntax.html
4+name: syslog
5+file_extensions:
6+ - log
7+scope: source.syslog
8+contexts:
9+ main:
10+ - match: \b(WAR|WARNING)\b
11+ scope: invalid.deprecated
12+ - match: (^(INVITE|ACK|PUBLISH|OPTIONS|CANCEL|BYE|SUBSCRIBE|NOTIFY|INFO|REFER|UPDATE|MESSAGE) sip.+$|SIP/2.0 180 Ringing|SIP/2.0 200 OK)
13+ scope: variable.parameter
14+ - match: '-----\>step.+$'
15+ scope: support.function
16+ - match: '.+\*{3,}.+'
17+ scope: comment
18+ - match: \b(INFO|VERBOSE)\b
19+ scope: comment
20+ - match: \bNOTICE\b
21+ scope: support.class
22+ - match: \b(ERR|ERROR)\b
23+ scope: invalid.illegal
24+ - match: '^\s*\[.+?\]'
25+ scope: string.quote.single
26+ - match: (--->|<---)( SIP read from | Transmitting \(NAT\) to | SIP transmit to).+$
27+ scope: comment.line
28+ - match: \<— SIP read from .+ —\>
29+ scope: constant.character
30+ - match: \<— Transmitting \(NAT\) .+ —\>
31+ scope: constant.numeric
32+ - match: (SEND\:|recv\:).+\>
33+ scope: constant.numeric
34+ - match: ^Call-ID\:.+$
35+ scope: constant.numeric
36+ - match: ^(User-Agent|Server)\:.+$
37+ scope: entity.name.function
38+ - match: (AMI Send\:|AMI Recv\:|m\=).+
39+ scope: constant.language
40+ - match: .*<conference-info.+
41+ scope: constant.o