Run scripts/build with changes

This commit is contained in:
Nick White
2024-07-24 14:11:07 -07:00
parent be4b94a788
commit ccddddd81e
206 changed files with 3989 additions and 2763 deletions

View File

@@ -15,12 +15,13 @@ syntax case match
" https://golang.org/ref/mod#go-mod-file-grammar
" match keywords
syntax keyword gomodModule module
syntax keyword gomodGo go contained
syntax keyword gomodRequire require
syntax keyword gomodExclude exclude
syntax keyword gomodReplace replace
syntax keyword gomodRetract retract
syntax keyword gomodModule module
syntax keyword gomodGo go contained
syntax keyword gomodToolchain toolchain contained
syntax keyword gomodRequire require
syntax keyword gomodExclude exclude
syntax keyword gomodReplace replace
syntax keyword gomodRetract retract
" require, exclude, replace, and go can be also grouped into block
syntax region gomodRequire start='require (' end=')' transparent contains=gomodRequire,gomodVersion
@@ -28,14 +29,16 @@ syntax region gomodExclude start='exclude (' end=')' transparent contains=gomodE
syntax region gomodReplace start='replace (' end=')' transparent contains=gomodReplace,gomodVersion
syntax region gomodRetract start='retract (' end=')' transparent contains=gomodVersionRange,gomodVersion
syntax match gomodGo '^go .*$' transparent contains=gomodGo,gomodGoVersion
syntax match gomodToolchain '^toolchain .*$' transparent contains=gomodToolchain,gomodToolchainVersion
" set highlights
highlight default link gomodModule Keyword
highlight default link gomodGo Keyword
highlight default link gomodRequire Keyword
highlight default link gomodExclude Keyword
highlight default link gomodReplace Keyword
highlight default link gomodRetract Keyword
highlight default link gomodModule Keyword
highlight default link gomodGo Keyword
highlight default link gomodToolchain Keyword
highlight default link gomodRequire Keyword
highlight default link gomodExclude Keyword
highlight default link gomodReplace Keyword
highlight default link gomodRetract Keyword
" comments are always in form of // ...
syntax region gomodComment start="//" end="$" contains=@Spell
@@ -49,8 +52,20 @@ highlight default link gomodString String
syntax match gomodReplaceOperator "\v\=\>"
highlight default link gomodReplaceOperator Operator
" match toolchain versions, based on https://go.dev/doc/toolchain#version,
" * default
" * go1
" * go1.X.Y
" * go1.X
" * go1.XrcN
" * go1.XrcN-somesuffix
" * go1.X.Y-somesuffix
syntax match gomodToolchainVersion "default$" contained
syntax match gomodToolchainVersion "go1\(.\d\+\)\{,2\}\(rc\d\+\)\?\([ \t-].*\)\?" contained
highlight default link gomodToolchainVersion Identifier
" match go versions
syntax match gomodGoVersion "1\.\d\+" contained
syntax match gomodGoVersion "\(1.\d\+\)\(\(.\d\+\)\|\(rc\d\+\)\)\?" contained
highlight default link gomodGoVersion Identifier
" highlight versions: