      <rule pattern="(\.|\!|\-|\+|\~|\*\*|\*|\/|\%|\.\.\.|\.\.|\&lt;\=|\&gt;\=|\&lt;|\&gt;|\=\=|\!\=|\&amp;\&amp;|\|\||\=|\:\=|\?\=|\+\=|\-\=|\*\=|\/\=|\%\=|\?|\:)">
        <token type="Operator"/>
      </rule>
      <rule pattern="\b(and|if unless|in|is|is a|is defined|is not|isnt|or|not)\b">
        <token type="OperatorWord"/>
      </rule>
      <rule pattern="(\#[a-f0-9]{3,6})">
        <token type="LiteralNumberHex"/>
      </rule>
      <rule pattern="\n">
        <token type="Text"/>
      </rule>
    </state>
    <state name="inline-comment">
      <rule pattern="\*/">
        <token type="Comment"/>
        <pop depth="1"/>
      </rule>
    </state>
    <state name="atrule">
      <rule pattern="\{">
        <token type="Punctuation"/>
        <push state="atcontent"/>
      </rule>
      <rule pattern="$">
        <token type="Punctuation"/>
        <pop depth="1"/>
      </rule>
      <rule>
        <include state="root"/>
      </rule>
    </state>
    <state name="atcontent">
      <rule>
        <include state="root"/>
      </rule>
      <rule pattern="\}">
        <token type="Punctuation"/>
        <pop depth="2"/>
      </rule>
    </state>
    <state name="function-start">
      <rule pattern="\)">
        <token type="Punctuation"/>
        <pop depth="1"/>
      </rule>
      <rule>
        <include state="root"/>
      </rule>
    </state>
  </rules>
</lexer>