]> git.lizzy.rs Git - micro.git/commitdiff
Update yaml syntax file
authorZachary Yedidia <zyedidia@gmail.com>
Sun, 26 Mar 2017 21:45:58 +0000 (17:45 -0400)
committerZachary Yedidia <zyedidia@gmail.com>
Sun, 26 Mar 2017 21:45:58 +0000 (17:45 -0400)
cmd/micro/runtime.go
runtime/syntax/yaml.yaml

index 724524b6bbaa618d95ad961228abe78f36af0ee2..dc408c68c5ae3fe455831d7c71d374edfff9817b 100644 (file)
@@ -2716,7 +2716,7 @@ func runtimeSyntaxXresourcesYaml() (*asset, error) {
        return a, nil
 }
 
-var _runtimeSyntaxYamlYaml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x51\x4d\x8f\xd3\x30\x10\xbd\xfb\x57\xb8\xa6\xcb\x26\x5b\xb9\xe2\x8a\x85\x58\x55\x88\xe5\x02\xed\x01\x2e\x25\x93\x48\x6e\x3b\x61\x2d\x39\x76\xb1\x5d\xa1\xa0\xf9\xf1\x28\x0e\x5b\x45\x59\x21\x71\xd8\x51\x0e\xc9\x7c\xbc\xf7\xf2\x5e\x6b\x2c\xa6\xfe\x8c\x8a\xf7\xba\xb3\x8c\x9d\x30\xe1\x31\x29\xc6\x39\xe7\xc3\xcc\xe9\x0e\x15\x17\x00\xeb\x5e\xdf\x77\x76\x29\xf2\xe4\x11\xf5\x09\x83\xe2\xe2\x66\xbf\xf9\xf2\x59\x30\x16\x2e\x16\xe3\x78\x25\xf9\x88\x27\x8a\x86\x78\xb9\x58\x14\x07\xe3\x74\xe8\xe9\xe0\xbd\xa5\xd6\x7a\x9d\xc8\xb8\x44\x9d\x3e\x93\xbb\x58\x4b\x7e\x78\x8b\xf8\x93\x22\x26\x8a\x29\x94\x5c\xfc\xc5\x39\x7a\x17\x93\x76\x49\xf1\x41\xc0\xa1\xd8\x7f\xfc\x4a\x3d\x46\xda\x53\x4f\xbb\x2d\x79\x47\xdb\x1d\x39\x4f\x5b\x72\xb4\x7b\x78\x20\xdf\xb6\x25\xc0\xe1\xf9\x79\xbe\x4e\xe1\x82\xd4\x6a\x1b\x71\xba\x14\x93\x4e\xd8\x61\xde\x2a\x54\x55\xa9\x78\xd6\x47\x54\x75\x4d\x00\x15\x01\xd4\x34\x6d\xae\x2a\x7a\x5f\x53\x33\xe9\xdc\x49\x5e\x3e\x61\x99\x13\xba\x64\x5a\x93\x9d\x99\xec\x54\x00\x77\xaf\xeb\x6a\x23\xbf\x6b\xf9\xfb\x8d\x7c\x5b\xaf\xc4\xcc\xa9\x4a\x02\xfc\xaa\x57\x0a\x20\xae\x4a\xba\x7e\x2e\xaf\xd0\xf1\x8c\x47\xa3\xed\xe0\x44\xd1\x48\x29\xa9\x01\x58\x8f\x0f\x35\x39\x04\x6a\x6e\xbe\x6d\x3e\x95\x82\xcd\xfe\x7e\x1d\x53\x30\xee\xc7\x98\xcd\x50\x31\xe9\x90\x3d\x11\xe2\xda\x43\x77\x1a\x64\xdc\xbf\x5b\x00\x00\x94\xd3\xd1\x24\xd9\xa7\x9a\x82\x8f\xba\x3e\x3c\xea\x90\x6d\x06\x58\xff\xbf\x82\xdb\x7f\x0a\xb8\x7d\x19\xfe\x2e\x07\xfb\x8c\xf7\xd5\x9c\x77\x39\xa7\xe3\x55\xcd\x18\xfb\x13\x00\x00\xff\xff\xf0\xac\xa0\x99\x1c\x03\x00\x00")
+var _runtimeSyntaxYamlYaml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x91\x4f\x8f\xd3\x30\x10\xc5\xef\xfe\x14\xae\xd9\x65\x93\xad\x1c\x71\xc5\x42\xac\x2a\xc4\x72\x81\xf6\x00\x97\x92\x49\x24\xb7\x9d\xb0\x96\x1c\xbb\xd8\xae\x50\xd0\x7c\x78\x14\x87\x85\xd0\x82\xc4\x61\xad\x1c\xa2\xf9\xf3\xde\xd3\x6f\x3a\x63\x31\x0d\x47\x54\x7c\xd0\xbd\x65\xec\x80\x09\xf7\x49\x31\xce\x39\x1f\x7b\x4e\xf7\xa8\xb8\x00\xa8\x06\x7d\xd7\xdb\x2b\x91\x3b\x0f\xa8\x0f\x18\x14\x17\xd7\xdb\xd5\x87\xf7\x82\xb1\x70\xb2\x18\xa7\x2d\xc9\x27\x3d\x51\xb4\xc4\xcb\xc5\xa2\xd8\x19\xa7\xc3\x40\x3b\xef\x2d\x75\xd6\xeb\x44\xc6\x25\xea\xf5\x91\xdc\xc9\x5a\xf2\xe3\x5f\xc4\xaf\x14\x31\x51\x4c\xa1\xe4\xe2\xa7\xce\xde\xbb\x98\xb4\x4b\x8a\x8f\x01\x76\xc5\xf6\xed\x47\x1a\x30\xd2\x96\x06\xda\xac\xc9\x3b\x5a\x6f\xc8\x79\x5a\x93\xa3\xcd\xfd\x3d\xf9\xae\x2b\x01\x76\x97\xeb\x79\x3b\x85\x13\x52\xa7\x6d\xc4\xf9\x50\x4c\x3a\x61\x8f\x79\xaa\x50\x75\xad\xe2\x51\xef\x51\x35\x0d\x01\xd4\x04\xd0\xd0\xbc\xb8\xac\xe9\x75\x43\xed\xac\x72\x2b\x79\xf9\xa8\x65\x0e\xe8\x92\xe9\x4c\x26\x33\x9b\xa9\x01\x6e\x9f\x37\xf5\x4a\x7e\xd6\xf2\xfb\x0b\xf9\xb2\x59\x8a\x3f\x49\xd5\xb2\x02\xf8\xd6\x2c\xd5\xdf\x52\xfd\x2e\x1e\x71\x6f\xb4\x1d\x69\x14\xad\x94\x92\x5a\x80\x6a\xfa\xa8\xcd\x87\xa0\xf6\xfa\xd3\xea\x5d\x29\xd8\x19\x81\x2a\xa6\x60\xdc\x97\xe9\x3e\xe3\x8b\x49\x87\xcc\x45\x88\x5f\x35\x74\x87\x91\xc1\xdd\xab\x05\x00\x40\x39\x6f\xcd\xae\xfb\xf8\xe6\xe2\x53\xae\x37\x0f\x3a\x64\xd4\x00\xd5\xff\x27\xb8\xf9\x67\x80\x9b\xa7\xf1\xef\x33\xc6\x0b\xdf\x67\xe7\xbe\x57\xe7\x76\xbc\x6e\x18\x63\x3f\x02\x00\x00\xff\xff\x2f\xf5\x7f\x89\x20\x03\x00\x00")
 
 func runtimeSyntaxYamlYamlBytes() ([]byte, error) {
        return bindataRead(
index a2a529f5a902f0f73e224df934f3f97e4105cc89..47ad272dda680cb0a56c39acc75c642ef39dfd91 100644 (file)
@@ -10,7 +10,8 @@ rules:
     - constant: "\\b(true|false)\\b"
     - statement: "(:[[:space:]]|\\[|\\]|:[[:space:]]+[|>]|^[[:space:]]*- )"
     - identifier: "[[:space:]][\\*&][A-Za-z0-9]+"
-    - type: "([-\\w]+:\\s+)|([-\\w]+:$)"
+    - type: "[-.\\w]+:"
+    - statement: ":"
     - special:  "(^---|^\\.\\.\\.|^%YAML|^%TAG)"
 
     - constant.string: