blob: c6190058572b35d358564819b2ef490294a66e68 [file] [log] [blame]
{
"scopeName": "go.sum",
"patterns": [
{
"include": "#checksum"
},
{
"include": "#semver"
},
{
"include": "#unquoted_string"
}
],
"repository": {
"checksum": {
"comment": "Checksum",
"match": "h1:([^\\s]+)=",
"captures": {
"1": {
"patterns": [
{
"match": "[a-zA-Z\\d+\\/]{43}",
"name": "string.unquoted.go.sum"
},
{
"match": ".*",
"name": "invalid.illegal.unknown-hash.go.sum"
}
]
}
}
},
"semver": {
"comment": "Semver version strings (v1.2.3)",
"match": "v(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-[\\da-z-]+(?:\\.[\\da-z-]+)*)?(?:\\+[\\da-z-]+(?:\\.[\\da-z-]+)*)?",
"name": "constant.language.go.sum"
},
"unquoted_string": {
"comment": "Unquoted string",
"match": "[^\\s]+",
"name": "string.unquoted.go.sum"
}
}
}