Skip to content

Commit

Permalink
add initial support for bitbake language
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Eberhard <pascal.eberhard@se.com>
  • Loading branch information
pascaleberhard0se committed Mar 26, 2024
1 parent cef839e commit e9e330c
Show file tree
Hide file tree
Showing 8 changed files with 678 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
| beancount || | | |
| bibtex || | | `texlab` |
| bicep || | | `bicep-langserver` |
| bitbake |||| `bitbake-language-server` |
| blade || | | |
| blueprint || | | `blueprint-compiler` |
| c |||| `clangd` |
Expand Down
12 changes: 12 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ awk-language-server = { command = "awk-language-server" }
bash-language-server = { command = "bash-language-server", args = ["start"] }
bass = { command = "bass", args = ["--lsp"] }
bicep-langserver = { command = "bicep-langserver" }
bitbake-language-server = { command = "bitbake-language-server" }
bufls = { command = "bufls", args = ["serve"] }
cairo-language-server = { command = "cairo-language-server", args = [] }
cl-lsp = { command = "cl-lsp", args = [ "stdio" ] }
Expand Down Expand Up @@ -3209,6 +3210,17 @@ indent = { tab-width = 2, unit = " " }
name = "dbml"
source = { git = "https://github.com/dynamotn/tree-sitter-dbml", rev = "2e2fa5640268c33c3d3f27f7e676f631a9c68fd9" }

[[language]]
name = "bitbake"
language-servers = [ "bitbake-language-server" ]
scope = "source.bitbake"
file-types = ["bb", "bbappend", "bbclass", {glob = "conf/*.conf" }, {glob = "conf/*/*.{inc,conf}" }, { glob = "recipe-*/*/*.inc" }]
comment-token = "#"

[[grammar]]
name = "bitbake"
source = { git = "https://github.com/tree-sitter-grammars/tree-sitter-bitbake", rev = "10bacac929ff36a1e8f4056503fe4f8717b21b94" }

[[language]]
name = "log"
scope = "source.log"
Expand Down
29 changes: 29 additions & 0 deletions runtime/queries/bitbake/folds.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[
(function_definition)
(anonymous_python_function)
(python_function_definition)

(while_statement)
(for_statement)
(if_statement)
(with_statement)
(try_statement)

(import_from_statement)
(parameters)
(argument_list)

(parenthesized_expression)
(generator_expression)
(list_comprehension)
(set_comprehension)
(dictionary_comprehension)

(tuple)
(list)
(set)
(dictionary)

(string)
(python_string)
] @fold
Loading

0 comments on commit e9e330c

Please sign in to comment.