mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22:23 +00:00
25 lines
635 B
XML
25 lines
635 B
XML
<lexer>
|
|
<config>
|
|
<name>Bash Session</name>
|
|
<alias>bash-session</alias>
|
|
<alias>console</alias>
|
|
<alias>shell-session</alias>
|
|
<filename>*.sh-session</filename>
|
|
<mime_type>text/x-sh</mime_type>
|
|
<ensure_nl>true</ensure_nl>
|
|
</config>
|
|
<rules>
|
|
<state name="root">
|
|
<rule pattern="^((?:\[[^]]+@[^]]+\]\s?)?[#$%>])(\s*)(.*\n?)">
|
|
<bygroups>
|
|
<token type="GenericPrompt"/>
|
|
<token type="Text"/>
|
|
<using lexer="bash"/>
|
|
</bygroups>
|
|
</rule>
|
|
<rule pattern="^.+\n?">
|
|
<token type="GenericOutput"/>
|
|
</rule>
|
|
</state>
|
|
</rules>
|
|
</lexer> |