Skip to content

Commit

Permalink
Fix a bug that ate functions ;) (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
serhack committed Nov 10, 2022
1 parent ee9558d commit 16fd666
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lexers/embedded/c.xml
Expand Up @@ -218,6 +218,9 @@
<token type="Punctuation"/>
</bygroups>
</rule>
<rule pattern="\b[A-Za-z_]\w*(?=\s*\()">
<token type="NameFunction"/>
</rule>
<rule pattern="[a-zA-Z_]\w*">
<token type="Name"/>
</rule>
Expand All @@ -226,7 +229,7 @@
<rule>
<include state="whitespace"/>
</rule>
<rule pattern="((?:[\w*\s])+?(?:\s|[*]))([a-zA-Z_]\w*)(\s*\([^;]*?\))([^;{]*)(\{)|\b[a-z_]\w*(?=\s*\()">
<rule pattern="((?:[\w*\s])+?(?:\s|[*]))([a-zA-Z_]\w*)(\s*\([^;]*?\))([^;{]*)(\{)">
<bygroups>
<usingself state="root"/>
<token type="NameFunction"/>
Expand Down

0 comments on commit 16fd666

Please sign in to comment.