mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-24 10:26:18 +04:00
add log tree-sitter (#8916)
* add log tree-sitter * better highlight queries
This commit is contained in:
parent
0739d13b03
commit
f8d261cd20
@ -91,6 +91,7 @@
|
|||||||
| llvm | ✓ | ✓ | ✓ | |
|
| llvm | ✓ | ✓ | ✓ | |
|
||||||
| llvm-mir | ✓ | ✓ | ✓ | |
|
| llvm-mir | ✓ | ✓ | ✓ | |
|
||||||
| llvm-mir-yaml | ✓ | | ✓ | |
|
| llvm-mir-yaml | ✓ | | ✓ | |
|
||||||
|
| log | ✓ | | | |
|
||||||
| lpf | ✓ | | | |
|
| lpf | ✓ | | | |
|
||||||
| lua | ✓ | ✓ | ✓ | `lua-language-server` |
|
| lua | ✓ | ✓ | ✓ | `lua-language-server` |
|
||||||
| make | ✓ | | | |
|
| make | ✓ | | | |
|
||||||
|
@ -2943,3 +2943,12 @@ indent = { tab-width = 2, unit = " " }
|
|||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "dbml"
|
name = "dbml"
|
||||||
source = { git = "https://github.com/dynamotn/tree-sitter-dbml", rev = "2e2fa5640268c33c3d3f27f7e676f631a9c68fd9" }
|
source = { git = "https://github.com/dynamotn/tree-sitter-dbml", rev = "2e2fa5640268c33c3d3f27f7e676f631a9c68fd9" }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "log"
|
||||||
|
scope = "source.log"
|
||||||
|
file-types = ["log"]
|
||||||
|
|
||||||
|
[[grammar]]
|
||||||
|
name = "log"
|
||||||
|
source = { git = "https://github.com/Tudyx/tree-sitter-log", rev = "62cfe307e942af3417171243b599cc7deac5eab9" }
|
||||||
|
10
runtime/queries/log/highlights.scm
Normal file
10
runtime/queries/log/highlights.scm
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
(trace) @comment
|
||||||
|
(debug) @hint
|
||||||
|
(info) @info
|
||||||
|
(warn) @warning
|
||||||
|
(error) @error
|
||||||
|
(year_month_day) @keyword
|
||||||
|
(time) @constant
|
||||||
|
(string_literal) @string
|
||||||
|
(number) @constant.numeric
|
||||||
|
(constant) @constant.builtin
|
Loading…
Reference in New Issue
Block a user