Skip to content

Commit

Permalink
lexers/r: Match keywords prior to functions (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
heavywatal authored Sep 25, 2023
1 parent 827bd93 commit 7eb0305
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lexers/embedded/r.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
</rule>
</state>
<state name="root">
<rule>
<include state="keywords"/>
</rule>
<rule pattern="((?:`[^`\\]*(?:\\.[^`\\]*)*`)|(?:(?:[a-zA-z]|[_.][^0-9])[\w_.]*))\s*(?=\()">
<token type="NameFunction"/>
</rule>
Expand Down Expand Up @@ -108,9 +111,6 @@
<rule>
<include state="numbers"/>
</rule>
<rule>
<include state="keywords"/>
</rule>
<rule>
<include state="punctuation"/>
</rule>
Expand Down

0 comments on commit 7eb0305

Please sign in to comment.