Skip to content

Commit

Permalink
improving literal support
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaptista committed Apr 2, 2022
1 parent bd66dea commit d553afb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Fennel.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ contexts:
scope: variable.function.hash_shorthand.fennel
captures:
1: entity.name.tag.lua_support.fennel
- match: '\$(\d+)(\.)'
scope: variable.function.hash_shorthand.fennel
captures:
1: constant.numeric.integer.decimal.fennel
2: entity.name.tag.lua_support.fennel
- match: '\$'
scope: variable.function.hash_shorthand.fennel
- match: '''|`|~|@'
Expand Down
9 changes: 9 additions & 0 deletions tests/syntax_test_fennel_reference_110.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,15 @@ _1 7/8 1_
; ^^^ keyword.operator.varargs.fennel
; ^ punctuation.section.braces.end.fennel

#{$1.bar.foo}
; <- entity.name.tag.literal_shorthand.fennel
;^ punctuation.section.braces.begin.fennel
; ^ variable.function.hash_shorthand.fennel
; ^ constant.numeric.integer.decimal.fennel
; ^ entity.name.tag.lua_support.fennel
; ^^^^^^^ source.fennel
; ^ punctuation.section.braces.end.fennel

#$.foo
; <- entity.name.tag.literal_shorthand.fennel
;^ variable.function.hash_shorthand.fennel
Expand Down

0 comments on commit d553afb

Please sign in to comment.