From 94c9b4069465e6b3b6dcd21108d51430580d7828 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Sun, 20 Jan 2019 04:20:53 -0500 Subject: [PATCH] Protobuf-syntax and ProtobufText syntax (#474) --- .gitmodules | 4 ++ assets/syntaxes/protobuf-syntax-highlighting | 1 + assets/syntaxes/syslog-syntax | 2 +- assets/syntaxes/syslog.sublime-syntax | 41 -------------------- 4 files changed, 6 insertions(+), 42 deletions(-) create mode 160000 assets/syntaxes/protobuf-syntax-highlighting delete mode 100644 assets/syntaxes/syslog.sublime-syntax diff --git a/.gitmodules b/.gitmodules index 8a5ccbcf..851ffcbe 100644 --- a/.gitmodules +++ b/.gitmodules @@ -110,3 +110,7 @@ path = assets/syntaxes/syslog-syntax url = https://github.com/caos21/syslog-syntax.git branch = master +[submodule "assets/syntaxes/protobuf-syntax-highlighting"] + path = assets/syntaxes/protobuf-syntax-highlighting + url = https://github.com/VcamX/protobuf-syntax-highlighting.git + branch = master diff --git a/assets/syntaxes/protobuf-syntax-highlighting b/assets/syntaxes/protobuf-syntax-highlighting new file mode 160000 index 00000000..5115c1c5 --- /dev/null +++ b/assets/syntaxes/protobuf-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit 5115c1c59aec63c89a872166686d23b7390cea12 diff --git a/assets/syntaxes/syslog-syntax b/assets/syntaxes/syslog-syntax index f9fe104a..7628d4e0 160000 --- a/assets/syntaxes/syslog-syntax +++ b/assets/syntaxes/syslog-syntax @@ -1 +1 @@ -Subproject commit f9fe104a60280d0ce8e1862f62477a7a9979e92a +Subproject commit 7628d4e0b89d3b4f0dcc014bfb4a3e3433f5133a diff --git a/assets/syntaxes/syslog.sublime-syntax b/assets/syntaxes/syslog.sublime-syntax deleted file mode 100644 index c49ea115..00000000 --- a/assets/syntaxes/syslog.sublime-syntax +++ /dev/null @@ -1,41 +0,0 @@ -%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: .*