mirror of
https://github.com/sharkdp/bat.git
synced 2024-12-23 06:48:53 +01:00
Add syslog-syntax
This commit is contained in:
parent
3324505383
commit
3b5174bb1d
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -106,3 +106,7 @@
|
||||
[submodule "assets/syntaxes/Assembly (ARM)"]
|
||||
path = assets/syntaxes/Assembly (ARM)
|
||||
url = https://github.com/tvi/Sublime-ARM-Assembly
|
||||
[submodule "assets/syntaxes/syslog-syntax"]
|
||||
path = assets/syntaxes/syslog-syntax
|
||||
url = https://github.com/caos21/syslog-syntax.git
|
||||
branch = master
|
||||
|
1
assets/syntaxes/syslog-syntax
vendored
Submodule
1
assets/syntaxes/syslog-syntax
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit f9fe104a60280d0ce8e1862f62477a7a9979e92a
|
41
assets/syntaxes/syslog.sublime-syntax
vendored
Normal file
41
assets/syntaxes/syslog.sublime-syntax
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
%YAML 1.2
|
||||
---
|
||||
# http://www.sublimetext.com/docs/3/syntax.html
|
||||
name: syslog
|
||||
file_extensions:
|
||||
- log
|
||||
scope: source.syslog
|
||||
contexts:
|
||||
main:
|
||||
- match: \b(WAR|WARNING)\b
|
||||
scope: invalid.deprecated
|
||||
- match: (^(INVITE|ACK|PUBLISH|OPTIONS|CANCEL|BYE|SUBSCRIBE|NOTIFY|INFO|REFER|UPDATE|MESSAGE) sip.+$|SIP/2.0 180 Ringing|SIP/2.0 200 OK)
|
||||
scope: variable.parameter
|
||||
- match: '-----\>step.+$'
|
||||
scope: support.function
|
||||
- match: '.+\*{3,}.+'
|
||||
scope: comment
|
||||
- match: \b(INFO|VERBOSE)\b
|
||||
scope: comment
|
||||
- match: \bNOTICE\b
|
||||
scope: support.class
|
||||
- match: \b(ERR|ERROR)\b
|
||||
scope: invalid.illegal
|
||||
- match: '^\s*\[.+?\]'
|
||||
scope: string.quote.single
|
||||
- match: (--->|<---)( SIP read from | Transmitting \(NAT\) to | SIP transmit to).+$
|
||||
scope: comment.line
|
||||
- match: \<— SIP read from .+ —\>
|
||||
scope: constant.character
|
||||
- match: \<— Transmitting \(NAT\) .+ —\>
|
||||
scope: constant.numeric
|
||||
- match: (SEND\:|recv\:).+\>
|
||||
scope: constant.numeric
|
||||
- match: ^Call-ID\:.+$
|
||||
scope: constant.numeric
|
||||
- match: ^(User-Agent|Server)\:.+$
|
||||
scope: entity.name.function
|
||||
- match: (AMI Send\:|AMI Recv\:|m\=).+
|
||||
scope: constant.language
|
||||
- match: .*<conference-info.+
|
||||
scope: constant.o
|
Loading…
Reference in New Issue
Block a user