Skip to content

Commit 9217fa3

Browse files
committed
support lua5.5 grammar
1 parent 953e23e commit 9217fa3

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emmylua"
3-
version = "0.20.2"
3+
version = "0.21.0"
44
edition = "2024"
55
license = "MIT"
66

extension.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id = "emmylua"
22
name = "EmmyLua"
33
description = "Advanced Lua language support with EmmyLua annotations, intelligent completions, powerful diagnostics and Debug Adapter Protocol support."
4-
version = "0.20.2"
4+
version = "0.21.0"
55
schema_version = 1
66
authors = ["0x2CA <[email protected]>", "CppCXY"]
77
repository = "https://github.com/EmmyLuaLs/Zed-EmmyLua"
@@ -18,8 +18,8 @@ schema_path = "debug_adapter_schemas/emmylua_new.json"
1818
# Lua debug locator for converting run tasks to debug scenarios
1919

2020
[grammars.lua]
21-
repository = "https://github.com/tree-sitter-grammars/tree-sitter-lua"
22-
commit = "d76023017f7485eae629cb60d406c7a1ca0f40c9"
21+
repository = "https://github.com/EmmyLuaLs/tree-sitter-lua"
22+
commit = "dc39814f6ad5413cd52a9a4199395418601fbb6e"
2323
[grammars.emmyluadoc]
2424
repository = "https://github.com/EmmyLuaLs/tree-sitter-emmyluadoc"
2525
commit = "ea755c0fd34c07e16597bd62a404d6eba2a3891e"

languages/emmylua/highlights.scm

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"then"
1717
"until"
1818
"while"
19+
"global"
1920
(break_statement)
2021
] @keyword
2122

@@ -78,10 +79,12 @@
7879
((identifier) @variable.special
7980
(#eq? @variable.special "self"))
8081

81-
(variable_list
82-
attribute: (attribute
83-
(["<" ">"] @punctuation.bracket
84-
(identifier) @attribute)))
82+
;; Attributes in variable declarations
83+
(attribute
84+
"<" @punctuation.bracket
85+
(identifier) @attribute
86+
">" @punctuation.bracket)
87+
8588

8689
;; Constants
8790

0 commit comments

Comments
 (0)