Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cfengine3 xml: add $(..) to match NameVariable (#768)
$(...) is a valid syntax (believe called nakedvar) that should also be
matched by the CFEngine3 lexer.

Fixes: #767

Signed-off-by: Miek Gieben <miek@miek.nl>
  • Loading branch information
miekg committed Mar 17, 2023
1 parent cc132ed commit f995707
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lexers/embedded/cfengine3.xml
Expand Up @@ -111,6 +111,9 @@
<rule pattern="@[{(][^)}]+[})]">
<token type="NameVariable"/>
</rule>
<rule pattern="\$[(][^)]+[)]">
<token type="NameVariable"/>
</rule>
<rule pattern="[(){},;]">
<token type="Punctuation"/>
</rule>
Expand Down

0 comments on commit f995707

Please sign in to comment.