2024-08-02 20:03:49 +00:00
|
|
|
<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>
|
2024-08-26 23:18:28 +00:00
|
|
|
</lexer>
|