feat(sflog): add sflog (Salesforce debug log) parser and highlights

Co-authored-by: xi xiao <tdxiaoxi2@gmail.com>
This commit is contained in:
Xi Xiao 2024-08-10 11:05:48 +03:00 committed by GitHub
parent c8f8dd1551
commit 9a0db40403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 63 additions and 3 deletions

View file

@ -659,6 +659,9 @@
"scss": {
"revision": "c478c6868648eff49eb04a4df90d703dc45b312a"
},
"sflog": {
"revision": "caffc6ebd1ab16ba4d4dec367cebb03ca2411872"
},
"slang": {
"revision": "d84b43d75d65bbc4ba57166ce17555f32c0b8983"
},

View file

@ -98,7 +98,7 @@ list.apex = {
files = { "src/parser.c" },
location = "apex",
},
maintainers = { "@aheber" },
maintainers = { "@aheber", "@xixiaofinland" },
}
list.arduino = {
@ -1908,6 +1908,15 @@ list.scss = {
maintainers = { "@elianiva" },
}
list.sflog = {
install_info = {
url = "https://github.com/aheber/tree-sitter-sfapex",
files = { "src/parser.c" },
location = "sflog",
},
maintainers = { "@aheber", "@xixiaofinland" },
}
list.slang = {
install_info = {
url = "https://github.com/theHamsta/tree-sitter-slang",
@ -1966,7 +1975,7 @@ list.soql = {
files = { "src/parser.c" },
location = "soql",
},
maintainers = { "@aheber" },
maintainers = { "@aheber", "@xixiaofinland" },
}
list.sosl = {
@ -1975,7 +1984,7 @@ list.sosl = {
files = { "src/parser.c" },
location = "sosl",
},
maintainers = { "@aheber" },
maintainers = { "@aheber", "@xixiaofinland" },
}
list.sourcepawn = {

View file

@ -0,0 +1,48 @@
; highlights.scm
[
"|"
"|["
"]"
"("
")"
"|("
")|"
] @punctuation.bracket
[
","
";"
":"
] @punctuation.delimiter
"EXTERNAL" @keyword
"out of" @property
(number) @number
(identifier) @variable
(version) @string.special
(anonymous_block) @string
(limit) @property
(time) @function
(limit
(identifier) @string)
(event_detail
(event_detail_value) @string)
(log_level_setting
(component) @type)
(log_level_setting
(log_level) @constant)
(log_entry
(event_identifier
(identifier) @type))