Skip to content

Commit

Permalink
Allow # as character in variable name of UICB declarations (#444)
Browse files Browse the repository at this point in the history
This will make the symbol list (Ctrl+R) show the full name of the variable if it contains macro #tokens#
  • Loading branch information
mkruselj authored Feb 16, 2024
1 parent a3e6950 commit b812ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KSP.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ contexts:
comment: Operator
scope: keyword.operator.source.ksp

- match: '(on\s+ui_control(s)?)(\s*\(([a-zA-Z0-9$%@?_.]+)\))?'
- match: '(on\s+ui_control(s)?)(\s*\(([$%@?]?[a-zA-Z0-9_#.]+)\))?'
comment: UI callback
captures:
0: entity.name.callback.source.ksp
Expand Down

0 comments on commit b812ecd

Please sign in to comment.