Files
cheat/vendor/github.com/alecthomas/chroma/v2/lexers/embedded/erb.xml
dependabot[bot] b40cc1e04e chore(deps): bump github.com/alecthomas/chroma/v2 from 2.23.1 to 2.24.1
Bumps [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma) from 2.23.1 to 2.24.1.
- [Release notes](https://github.com/alecthomas/chroma/releases)
- [Commits](https://github.com/alecthomas/chroma/compare/v2.23.1...v2.24.1)

---
updated-dependencies:
- dependency-name: github.com/alecthomas/chroma/v2
  dependency-version: 2.24.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-30 22:11:51 +00:00

38 lines
939 B
XML

<lexer>
<config>
<name>ERB</name>
<dot_all>true</dot_all>
</config>
<rules>
<state name="root">
<rule pattern="(&lt;%#)(.*?)(-?%&gt;)">
<bygroups>
<token type="CommentPreproc"/>
<token type="Comment"/>
<token type="CommentPreproc"/>
</bygroups>
</rule>
<rule pattern="(&lt;%-?=)(.*?)(-?%&gt;)">
<bygroups>
<token type="CommentPreproc"/>
<using lexer="Ruby"/>
<token type="CommentPreproc"/>
</bygroups>
</rule>
<rule pattern="(&lt;%-?)(.*?)(-?%&gt;)">
<bygroups>
<token type="CommentPreproc"/>
<using lexer="Ruby"/>
<token type="CommentPreproc"/>
</bygroups>
</rule>
<rule pattern="[^&lt;]+">
<token type="Other"/>
</rule>
<rule pattern="&lt;">
<token type="Other"/>
</rule>
</state>
</rules>
</lexer>