diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index c21ca2501..ed4014e30 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -91,6 +91,7 @@ | llvm | ✓ | ✓ | ✓ | | | llvm-mir | ✓ | ✓ | ✓ | | | llvm-mir-yaml | ✓ | | ✓ | | +| log | ✓ | | | | | lpf | ✓ | | | | | lua | ✓ | ✓ | ✓ | `lua-language-server` | | make | ✓ | | | | diff --git a/languages.toml b/languages.toml index 613a91bdc..10ed167b0 100644 --- a/languages.toml +++ b/languages.toml @@ -2943,3 +2943,12 @@ indent = { tab-width = 2, unit = " " } [[grammar]] name = "dbml" 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" } diff --git a/runtime/queries/log/highlights.scm b/runtime/queries/log/highlights.scm new file mode 100644 index 000000000..6820b3fd0 --- /dev/null +++ b/runtime/queries/log/highlights.scm @@ -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