Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extension.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ languages = ["Dart"]

[grammars.dart]
repository = "https://github.com/UserNobody14/tree-sitter-dart"
commit = "80e23c07b64494f7e21090bb3450223ef0b192f4"
commit = "0fc19c3a57b1109802af41d2b8f60d8835c5da3a"

[debug_adapters.Dart]
# Optional relative path to the JSON schema for the debug adapter configuration schema. Defaults to `debug_adapter_schemas/$DEBUG_ADAPTER_NAME_ID.json`.
Expand Down
12 changes: 11 additions & 1 deletion languages/dart/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,17 @@
(argument_part
(arguments)))

; Dot shorthand
(dot_shorthand
(identifier) @property)

((dot_shorthand
(identifier) @function.method)
.
(selector
(argument_part
(arguments))))

; Some methods do not have a selector as a parent of the conditional_assignable_selector
; For example, super methods.
((unconditional_assignable_selector
Expand Down Expand Up @@ -271,7 +282,6 @@
(final_builtin)
"abstract"
"covariant"
"dynamic"
"external"
"static"
"final"
Expand Down
Loading