Sha256: 6570ef3fc010381e42fe6075e52ff81033c45698e603b3c3b9c05dda6e178f60

Contents?: true

Size: 1.22 KB

Versions: 23

Compression:

Stored size: 1.22 KB

Contents

{"name":"Redirect Rules","scopeName":"source.redirects","patterns":[{"include":"#main"}],"repository":{"code":{"name":"string.unquoted.code.redirects","match":"(?\u003c==)[a-z]{2}(?:-[A-Z]{2})?(?=\\s|$)"},"comment":{"name":"comment.line.hash.redirects","begin":"#","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.redirects"}}},"main":{"patterns":[{"include":"#comment"},{"include":"#uri"},{"include":"#query"},{"include":"#number"},{"include":"#code"},{"include":"#punct"},{"include":"#text"}]},"number":{"match":"(\\d+)(!)?","captures":{"1":{"name":"constant.numeric.integer.redirects"},"2":{"name":"constant.character.force.redirects"}}},"punct":{"patterns":[{"name":"punctuation.accessor.redirects","match":":|="},{"name":"punctuation.separator.redirects","match":",(?!\\s)"}]},"query":{"name":"keyword.other.query-selector.redirects","match":"[^\\s]+(?==)"},"splat":{"name":"variable.other.splat.redirects","match":":\\w+"},"text":{"name":"string.unquoted.text.redirects","match":"(?\u003c==)[^\\s]+"},"uri":{"name":"string.unquoted.uri.redirects","begin":"(?:[a-z]+:)?\\/","end":"[\\s$]","patterns":[{"include":"#wildcard"},{"include":"#splat"}]},"wildcard":{"name":"constant.character.wildcard.redirects","match":"\\*"}}}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
github-linguist-9.0.0 grammars/source.redirects.json
github-linguist-8.0.1 grammars/source.redirects.json
github-linguist-8.0.0 grammars/source.redirects.json
github-linguist-7.30.0 grammars/source.redirects.json
github-linguist-7.29.0 grammars/source.redirects.json
github-linguist-7.28.0 grammars/source.redirects.json
github-linguist-7.27.0 grammars/source.redirects.json
github-linguist-7.26.0 grammars/source.redirects.json
github-linguist-7.25.0 grammars/source.redirects.json
github-linguist-7.24.1 grammars/source.redirects.json
github-linguist-7.24.0 grammars/source.redirects.json
github-linguist-7.23.0 grammars/source.redirects.json
github-linguist-7.22.1 grammars/source.redirects.json
github-linguist-7.22.0 grammars/source.redirects.json
github-linguist-7.21.0 grammars/source.redirects.json
github-linguist-7.20.0 grammars/source.redirects.json
github-linguist-7.19.0 grammars/source.redirects.json
github-linguist-7.18.0 grammars/source.redirects.json
github-linguist-7.17.0 grammars/source.redirects.json
github-linguist-7.16.1 grammars/source.redirects.json