Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
2.4 kB 79 lines
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980<lexer> <config> <name>Core</name> <alias>core</alias> <filename>*.core</filename> <mime_type>text/x-core</mime_type> </config> <rules> <state name="root"> <rule pattern="\s+"> <token type="TextWhitespace"/> </rule> <rule pattern="//(.*?)\n"> <token type="CommentSingle"/> </rule> <rule pattern="(class|value|union|trait|impl|annotation)\b"> <token type="KeywordDeclaration"/> </rule> <rule pattern="(fun|let|var)\b"> <token type="KeywordDeclaration"/> </rule> <rule pattern="(mod|import)\b"> <token type="KeywordNamespace"/> </rule> <rule pattern="(if|else|is|for|in|while|return)\b"> <token type="Keyword"/> </rule> <rule pattern="(true|false|self)\b"> <token type="KeywordConstant"/> </rule> <rule pattern="0[b][01](_?[01])*(i32|i64|u8|f32|f64)?"> <token type="LiteralNumberBin"/> </rule> <rule pattern="0[x][\da-fA-F](_?[\dA-Fa-f])*(i32|i64|u8|f32|f64)?"> <token type="LiteralNumberHex"/> </rule> <rule pattern="\d(_?\d)*\.\d(_?\d)*([eE][-+]?\d(_?\d)*)?(f32|f64)?"> <token type="LiteralNumberFloat"/> </rule> <rule pattern="\d(_?\d)*(i32|i64|u8|f32|f64)?"> <token type="LiteralNumberInteger"/> </rule> <rule pattern="""> <token type="LiteralString"/> <push state="string"/> </rule> <rule pattern="@([a-z_]\w*[!?]?)"> <token type="NameAttribute"/> </rule> <rule pattern="===|!==|==|!=|>=|<=|[><*/+-=&|^]"> <token type="Operator"/> </rule> <rule pattern="[A-Z][A-Za-z0-9_]*"> <token type="NameClass"/> </rule> <rule pattern="([a-z_]\w*[!?]?)"> <token type="Name"/> </rule> <rule pattern="[(){}\[\],.;]"> <token type="Punctuation"/> </rule> </state> <state name="string"> <rule pattern="""> <token type="LiteralString"/> <pop depth="1"/> </rule> <rule pattern="\\["\\fnrt]|\\u\{[\da-fA-F]{1,6}\}"> <token type="LiteralStringEscape"/> </rule> <rule pattern="[^\\"]+"> <token type="LiteralString"/> </rule> <rule pattern="\\"> <token type="LiteralString"/> </rule> </state> </rules></lexer>