Skip to content

Instantly share code, notes, and snippets.

@ChrisYounger
Created January 26, 2019 09:16
Show Gist options
  • Save ChrisYounger/520bdb1a7c8b22f5210213f83a3ab2db to your computer and use it in GitHub Desktop.
Save ChrisYounger/520bdb1a7c8b22f5210213f83a3ab2db to your computer and use it in GitHub Desktop.
[bool]
syntax = t|true|f|false
[field]
syntax = <fvalue>
[field-and-value]
syntax = <field>/s*=/s*<fvalue>
[field-and-value-list]
syntax = (?:<field-and-value>)+
[field-list]
syntax = <field>(?:[ ,]+<field>)*
[filename]
syntax = (?:/".*?/")|[^ ]*
[fvalue]
syntax = (?:/".*?/")|[a-zA-Z0-9_*-]*
[int]
syntax = -?/d+(?!/.)
[logical-expression]
syntax = <string>
[no-ws]
syntax = XXNO-WSXX
[num]
syntax = -?/d+(?:/./d+)*
[search-pipeline]
syntax = .+
[sed-expression]
syntax = .+
[string]
syntax = .*
[tag]
syntax = [a-zA-Z0-9_-]+
[tag-list]
syntax = (?:<tag>)+
[term]
syntax = [^ ]+
[wc-field]
syntax = <field>
[wc-field-list]
syntax = <field-list>
[wc-str]
syntax = <string>
[wc-string]
syntax = <string>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment