chore: modernize CI and update Go toolchain

- Bump Go from 1.19 to 1.26 and update all dependencies
- Rewrite CI workflow with matrix strategy (Linux, macOS, Windows)
- Update GitHub Actions to current versions (checkout@v4, setup-go@v5)
- Update CodeQL actions from v1 to v3
- Fix cross-platform bug in mock/path.go (path.Join -> filepath.Join)
- Clean up dependabot config (weekly schedule, remove stale ignore)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Christopher Allen Lane
2026-02-14 20:58:51 -05:00
parent cc85a4bdb1
commit 2a19755804
657 changed files with 49050 additions and 32001 deletions

View File

@@ -3,11 +3,18 @@
<name>Zig</name>
<alias>zig</alias>
<filename>*.zig</filename>
<filename>*.zon</filename>
<mime_type>text/zig</mime_type>
</config>
<rules>
<state name="string">
<rule pattern="\\(x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{6}|[nr\\t\&#39;&#34;])">
<rule pattern="\\x[0-9a-fA-F]{2}">
<token type="LiteralStringEscape"/>
</rule>
<rule pattern="\\u\{[0-9a-fA-F]+\}">
<token type="LiteralStringEscape"/>
</rule>
<rule pattern="\\[nrt&#39;&#34;\\]">
<token type="LiteralStringEscape"/>
</rule>
<rule pattern="[^\\&#34;\n]+">
@@ -17,96 +24,164 @@
<token type="LiteralString"/>
<pop depth="1"/>
</rule>
<rule pattern="\\">
<token type="LiteralString"/>
</rule>
</state>
<state name="quoted_ident">
<rule pattern="\\x[0-9a-fA-F]{2}">
<token type="LiteralStringEscape"/>
</rule>
<rule pattern="\\u\{[0-9a-fA-F]+\}">
<token type="LiteralStringEscape"/>
</rule>
<rule pattern="\\[nrt&#39;&#34;\\]">
<token type="LiteralStringEscape"/>
</rule>
<rule pattern="[^\\&#34;\n]+">
<token type="Name"/>
</rule>
<rule pattern="&#34;">
<token type="Name"/>
<pop depth="1"/>
</rule>
<rule pattern="\\">
<token type="Name"/>
</rule>
</state>
<state name="root">
<!-- Whitespace -->
<rule pattern="\n">
<token type="TextWhitespace"/>
</rule>
<rule pattern="\s+">
<token type="TextWhitespace"/>
</rule>
<rule pattern="//.*?\n">
<!-- Comments -->
<rule pattern="//!.*$">
<token type="CommentSpecial"/>
</rule>
<rule pattern="///.*$">
<token type="CommentSpecial"/>
</rule>
<rule pattern="//.*$">
<token type="CommentSingle"/>
</rule>
<rule pattern="(unreachable|continue|errdefer|suspend|return|resume|cancel|break|catch|async|await|defer|asm|try)\b">
<!-- Statement keywords -->
<rule pattern="(break|return|continue|asm|defer|errdefer|unreachable|try|catch|suspend|resume|nosuspend)\b">
<token type="Keyword"/>
</rule>
<rule pattern="(threadlocal|linksection|allowzero|stdcallcc|volatile|comptime|noalias|nakedcc|inline|export|packed|extern|align|const|pub|var)\b">
<!-- Storage/reserved keywords -->
<rule pattern="(const|var|extern|packed|export|pub|noalias|inline|noinline|comptime|volatile|allowzero|align|addrspace|linksection|threadlocal|callconv)\b">
<token type="KeywordReserved"/>
</rule>
<rule pattern="(struct|union|error|enum)\b">
<!-- Structure keywords -->
<rule pattern="(struct|enum|union|error|opaque)\b">
<token type="Keyword"/>
</rule>
<!-- Repeat keywords -->
<rule pattern="(while|for)\b">
<token type="Keyword"/>
</rule>
<rule pattern="(comptime_float|comptime_int|c_longdouble|c_ulonglong|c_longlong|c_voidi8|noreturn|c_ushort|anyerror|promise|c_short|c_ulong|c_uint|c_long|isize|c_int|usize|void|f128|i128|type|bool|u128|u16|f64|f32|u64|i16|f16|i32|u32|i64|u8|i0|u0)\b">
<!-- Type keywords -->
<rule pattern="(bool|void|noreturn|type|anyerror|anyopaque|f16|f32|f64|f80|f128|i8|u8|i16|u16|i32|u32|i64|u64|i128|u128|isize|usize|comptime_int|comptime_float|c_char|c_short|c_ushort|c_int|c_uint|c_long|c_ulong|c_longlong|c_ulonglong|c_longdouble)\b">
<token type="KeywordType"/>
</rule>
<rule pattern="(undefined|false|true|null)\b">
<!-- Constant keywords -->
<rule pattern="(true|false|null|undefined)\b">
<token type="KeywordConstant"/>
</rule>
<rule pattern="(switch|orelse|else|and|if|or)\b">
<!-- Conditional keywords -->
<rule pattern="(if|else|switch|and|or|orelse)\b">
<token type="Keyword"/>
</rule>
<rule pattern="(usingnamespace|test|fn)\b">
<!-- Other keywords -->
<rule pattern="(fn|test|anyframe|anytype)\b">
<token type="Keyword"/>
</rule>
<rule pattern="0x[0-9a-fA-F]+\.[0-9a-fA-F]+([pP][\-+]?[0-9a-fA-F]+)?">
<!-- Hex float -->
<rule pattern="0x[0-9a-fA-F][0-9a-fA-F_]*(?:\.[0-9a-fA-F][0-9a-fA-F_]*(?:[pP][-+]?[0-9][0-9_]*)?|[pP][-+]?[0-9][0-9_]*)">
<token type="LiteralNumberFloat"/>
</rule>
<rule pattern="0x[0-9a-fA-F]+\.?[pP][\-+]?[0-9a-fA-F]+">
<!-- Decimal float -->
<rule pattern="[0-9][0-9_]*(?:\.[0-9][0-9_]*(?:[eE][-+]?[0-9][0-9_]*)?|[eE][-+]?[0-9][0-9_]*)">
<token type="LiteralNumberFloat"/>
</rule>
<rule pattern="[0-9]+\.[0-9]+([eE][-+]?[0-9]+)?">
<token type="LiteralNumberFloat"/>
</rule>
<rule pattern="[0-9]+\.?[eE][-+]?[0-9]+">
<token type="LiteralNumberFloat"/>
</rule>
<rule pattern="0b(?:_?[01])+">
<!-- Binary -->
<rule pattern="0b[01][01_]*">
<token type="LiteralNumberBin"/>
</rule>
<rule pattern="0o(?:_?[0-7])+">
<!-- Octal -->
<rule pattern="0o[0-7][0-7_]*">
<token type="LiteralNumberOct"/>
</rule>
<rule pattern="0x(?:_?[0-9a-fA-F])+">
<!-- Hex integer -->
<rule pattern="0x[0-9a-fA-F][0-9a-fA-F_]*">
<token type="LiteralNumberHex"/>
</rule>
<rule pattern="(?:_?[0-9])+">
<!-- Decimal integer -->
<rule pattern="[0-9][0-9_]*">
<token type="LiteralNumberInteger"/>
</rule>
<rule pattern="@[a-zA-Z_]\w*">
<!-- Quoted identifier -->
<rule pattern="@&#34;">
<token type="Name"/>
<push state="quoted_ident"/>
</rule>
<!-- Builtin -->
<rule pattern="@[a-zA-Z_][a-zA-Z0-9_]*">
<token type="NameBuiltin"/>
</rule>
<rule pattern="[a-zA-Z_]\w*">
<!-- Function call -->
<rule pattern="[a-zA-Z_][a-zA-Z0-9_]*(?=\s*\()">
<token type="NameFunction"/>
</rule>
<!-- Identifier -->
<rule pattern="[a-zA-Z_][a-zA-Z0-9_]*">
<token type="Name"/>
</rule>
<rule pattern="\&#39;\\\&#39;\&#39;">
<token type="LiteralStringEscape"/>
</rule>
<rule pattern="\&#39;\\(|x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{6}|[nr\\t\&#39;&#34;])\&#39;">
<token type="LiteralStringEscape"/>
</rule>
<rule pattern="\&#39;[^\\\&#39;]\&#39;">
<token type="LiteralString"/>
<!-- Character literal -->
<rule pattern="&#39;(?:\\x[0-9a-fA-F]{2}|\\u\{[0-9a-fA-F]+\}|\\[nrt&#39;&#34;\\]|[^\\&#39;\n])&#39;">
<token type="LiteralStringChar"/>
</rule>
<!-- Multiline string -->
<rule pattern="\\\\[^\n]*">
<token type="LiteralStringHeredoc"/>
</rule>
<rule pattern="c\\\\[^\n]*">
<token type="LiteralStringHeredoc"/>
</rule>
<rule pattern="c?&#34;">
<!-- String start -->
<rule pattern="&#34;">
<token type="LiteralString"/>
<push state="string"/>
</rule>
<rule pattern="[+%=&gt;&lt;|^!?/\-*&amp;~:]">
<!-- 4-char operators -->
<rule pattern="&lt;&lt;\|=">
<token type="Operator"/>
</rule>
<rule pattern="[{}()\[\],.;]">
<!-- 3-char operators -->
<rule pattern="(?:\+%=|-%=|\*%=|\+\|=|-\|=|\*\|=|&lt;&lt;=|&gt;&gt;=|&lt;&lt;\|)">
<token type="Operator"/>
</rule>
<!-- 2-char operators -->
<rule pattern="(?:\+\+|\*\*|\|\||&lt;&lt;|&gt;&gt;|\+%|-%|\*%|\+\||-\||\*\||==|!=|&lt;=|&gt;=|\+=|-=|\*=|/=|%=|&amp;=|\|=|\^=|\.\*|\.\?|\.\.)">
<token type="Operator"/>
</rule>
<!-- 1-char operators -->
<rule pattern="[+\-*/%&amp;|^~!&lt;&gt;=]">
<token type="Operator"/>
</rule>
<!-- Punctuation -->
<rule pattern="\.\.\.">
<token type="Punctuation"/>
</rule>
<rule pattern="=&gt;">
<token type="Punctuation"/>
</rule>
<rule pattern="-&gt;">
<token type="Punctuation"/>
</rule>
<rule pattern="[{}()\[\],.;:?]">
<token type="Punctuation"/>
</rule>
</state>
</rules>
</lexer>
</lexer>