Skip to content

Commit

Permalink
fix highlighting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nsidorenco committed Apr 1, 2024
1 parent 0f518e1 commit e16dac3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
22 changes: 10 additions & 12 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
] @punctuation.bracket

[
","
","
";"
] @punctuation.delimiter

[
"|"
"|"
"="
">"
"<"
Expand Down Expand Up @@ -82,12 +82,10 @@
"delegate"
"static"
"inline"
"internal"
"mutable"
"override"
"private"
"public"
"rec"
(access_modifier)
] @keyword.storage.modifier

[
Expand Down Expand Up @@ -117,7 +115,7 @@
"fun"
"function"
"get"
"global"
; "global"
"inherit"
"interface"
"lazy"
Expand Down Expand Up @@ -159,11 +157,11 @@

[
(import_decl (long_identifier))
(named_module (long_identifier))
(namespace (long_identifier))
(named_module
(named_module (long_identifier))
(namespace (long_identifier))
(named_module
name: (long_identifier) )
(namespace
(namespace
name: (long_identifier) )
] @namespace

Expand All @@ -173,8 +171,8 @@
field: (long_identifier_or_op) @function)

[
;;(value_declaration_left (identifier_pattern) )
(function_declaration_left (identifier) )
;;(value_declaration_left (identifier_pattern) )
(function_declaration_left (identifier) )
(call_expression (long_identifier_or_op (long_identifier)))
;;(application_expression (long_identifier_or_op (long_identifier)))
] @function
Expand Down
6 changes: 3 additions & 3 deletions test/highlight/fsi_directives.fsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#r "nuget: FSharp.Compiler.Service, 43.7.300"
//<- keyword.control.import
// ^ namespace
// ^ string
#r "/home/bin/MyApp.dll"
//<- keyword.control.import
// ^ namespace
// ^ string
#load "Strings.fsx"
//<- keyword.control.import
// ^ namespace
// ^ string

0 comments on commit e16dac3

Please sign in to comment.