| 1 |
---input--- |
| 2 |
// JSON-LD keywords |
| 3 |
{"@base": ""} |
| 4 |
{"@container": ""} |
| 5 |
{"@context": ""} |
| 6 |
{"@direction": ""} |
| 7 |
{"@graph": ""} |
| 8 |
{"@id": ""} |
| 9 |
{"@import": ""} |
| 10 |
{"@included": ""} |
| 11 |
{"@index": ""} |
| 12 |
{"@json": ""} |
| 13 |
{"@language": ""} |
| 14 |
{"@list": ""} |
| 15 |
{"@nest": ""} |
| 16 |
{"@none": ""} |
| 17 |
{"@prefix": ""} |
| 18 |
{"@propagate": ""} |
| 19 |
{"@protected": ""} |
| 20 |
{"@reverse": ""} |
| 21 |
{"@set": ""} |
| 22 |
{"@type": ""} |
| 23 |
{"@value": ""} |
| 24 |
{"@version": ""} |
| 25 |
{"@vocab": ""} |
| 26 |
|
| 27 |
// Not keywords |
| 28 |
{"@bogus": ""} // "@" does not guarantee a keyword match |
| 29 |
{"@bases": ""} // keyword is "base" |
| 30 |
{"container": ""} // no leading "@" |
| 31 |
|
| 32 |
---tokens--- |
| 33 |
'// JSON-LD keywords' Comment.Single |
| 34 |
'\n' Text.Whitespace |
| 35 |
|
| 36 |
'{' Punctuation |
| 37 |
'"@base"' Name.Decorator |
| 38 |
':' Punctuation |
| 39 |
' ' Text.Whitespace |
| 40 |
'""' Literal.String.Double |
| 41 |
'}' Punctuation |
| 42 |
'\n' Text.Whitespace |
| 43 |
|
| 44 |
'{' Punctuation |
| 45 |
'"@container"' Name.Decorator |
| 46 |
':' Punctuation |
| 47 |
' ' Text.Whitespace |
| 48 |
'""' Literal.String.Double |
| 49 |
'}' Punctuation |
| 50 |
'\n' Text.Whitespace |
| 51 |
|
| 52 |
'{' Punctuation |
| 53 |
'"@context"' Name.Decorator |
| 54 |
':' Punctuation |
| 55 |
' ' Text.Whitespace |
| 56 |
'""' Literal.String.Double |
| 57 |
'}' Punctuation |
| 58 |
'\n' Text.Whitespace |
| 59 |
|
| 60 |
'{' Punctuation |
| 61 |
'"@direction"' Name.Decorator |
| 62 |
':' Punctuation |
| 63 |
' ' Text.Whitespace |
| 64 |
'""' Literal.String.Double |
| 65 |
'}' Punctuation |
| 66 |
'\n' Text.Whitespace |
| 67 |
|
| 68 |
'{' Punctuation |
| 69 |
'"@graph"' Name.Decorator |
| 70 |
':' Punctuation |
| 71 |
' ' Text.Whitespace |
| 72 |
'""' Literal.String.Double |
| 73 |
'}' Punctuation |
| 74 |
'\n' Text.Whitespace |
| 75 |
|
| 76 |
'{' Punctuation |
| 77 |
'"@id"' Name.Decorator |
| 78 |
':' Punctuation |
| 79 |
' ' Text.Whitespace |
| 80 |
'""' Literal.String.Double |
| 81 |
'}' Punctuation |
| 82 |
'\n' Text.Whitespace |
| 83 |
|
| 84 |
'{' Punctuation |
| 85 |
'"@import"' Name.Decorator |
| 86 |
':' Punctuation |
| 87 |
' ' Text.Whitespace |
| 88 |
'""' Literal.String.Double |
| 89 |
'}' Punctuation |
| 90 |
'\n' Text.Whitespace |
| 91 |
|
| 92 |
'{' Punctuation |
| 93 |
'"@included"' Name.Decorator |
| 94 |
':' Punctuation |
| 95 |
' ' Text.Whitespace |
| 96 |
'""' Literal.String.Double |
| 97 |
'}' Punctuation |
| 98 |
'\n' Text.Whitespace |
| 99 |
|
| 100 |
'{' Punctuation |
| 101 |
'"@index"' Name.Decorator |
| 102 |
':' Punctuation |
| 103 |
' ' Text.Whitespace |
| 104 |
'""' Literal.String.Double |
| 105 |
'}' Punctuation |
| 106 |
'\n' Text.Whitespace |
| 107 |
|
| 108 |
'{' Punctuation |
| 109 |
'"@json"' Name.Decorator |
| 110 |
':' Punctuation |
| 111 |
' ' Text.Whitespace |
| 112 |
'""' Literal.String.Double |
| 113 |
'}' Punctuation |
| 114 |
'\n' Text.Whitespace |
| 115 |
|
| 116 |
'{' Punctuation |
| 117 |
'"@language"' Name.Decorator |
| 118 |
':' Punctuation |
| 119 |
' ' Text.Whitespace |
| 120 |
'""' Literal.String.Double |
| 121 |
'}' Punctuation |
| 122 |
'\n' Text.Whitespace |
| 123 |
|
| 124 |
'{' Punctuation |
| 125 |
'"@list"' Name.Decorator |
| 126 |
':' Punctuation |
| 127 |
' ' Text.Whitespace |
| 128 |
'""' Literal.String.Double |
| 129 |
'}' Punctuation |
| 130 |
'\n' Text.Whitespace |
| 131 |
|
| 132 |
'{' Punctuation |
| 133 |
'"@nest"' Name.Decorator |
| 134 |
':' Punctuation |
| 135 |
' ' Text.Whitespace |
| 136 |
'""' Literal.String.Double |
| 137 |
'}' Punctuation |
| 138 |
'\n' Text.Whitespace |
| 139 |
|
| 140 |
'{' Punctuation |
| 141 |
'"@none"' Name.Decorator |
| 142 |
':' Punctuation |
| 143 |
' ' Text.Whitespace |
| 144 |
'""' Literal.String.Double |
| 145 |
'}' Punctuation |
| 146 |
'\n' Text.Whitespace |
| 147 |
|
| 148 |
'{' Punctuation |
| 149 |
'"@prefix"' Name.Decorator |
| 150 |
':' Punctuation |
| 151 |
' ' Text.Whitespace |
| 152 |
'""' Literal.String.Double |
| 153 |
'}' Punctuation |
| 154 |
'\n' Text.Whitespace |
| 155 |
|
| 156 |
'{' Punctuation |
| 157 |
'"@propagate"' Name.Decorator |
| 158 |
':' Punctuation |
| 159 |
' ' Text.Whitespace |
| 160 |
'""' Literal.String.Double |
| 161 |
'}' Punctuation |
| 162 |
'\n' Text.Whitespace |
| 163 |
|
| 164 |
'{' Punctuation |
| 165 |
'"@protected"' Name.Decorator |
| 166 |
':' Punctuation |
| 167 |
' ' Text.Whitespace |
| 168 |
'""' Literal.String.Double |
| 169 |
'}' Punctuation |
| 170 |
'\n' Text.Whitespace |
| 171 |
|
| 172 |
'{' Punctuation |
| 173 |
'"@reverse"' Name.Decorator |
| 174 |
':' Punctuation |
| 175 |
' ' Text.Whitespace |
| 176 |
'""' Literal.String.Double |
| 177 |
'}' Punctuation |
| 178 |
'\n' Text.Whitespace |
| 179 |
|
| 180 |
'{' Punctuation |
| 181 |
'"@set"' Name.Decorator |
| 182 |
':' Punctuation |
| 183 |
' ' Text.Whitespace |
| 184 |
'""' Literal.String.Double |
| 185 |
'}' Punctuation |
| 186 |
'\n' Text.Whitespace |
| 187 |
|
| 188 |
'{' Punctuation |
| 189 |
'"@type"' Name.Decorator |
| 190 |
':' Punctuation |
| 191 |
' ' Text.Whitespace |
| 192 |
'""' Literal.String.Double |
| 193 |
'}' Punctuation |
| 194 |
'\n' Text.Whitespace |
| 195 |
|
| 196 |
'{' Punctuation |
| 197 |
'"@value"' Name.Decorator |
| 198 |
':' Punctuation |
| 199 |
' ' Text.Whitespace |
| 200 |
'""' Literal.String.Double |
| 201 |
'}' Punctuation |
| 202 |
'\n' Text.Whitespace |
| 203 |
|
| 204 |
'{' Punctuation |
| 205 |
'"@version"' Name.Decorator |
| 206 |
':' Punctuation |
| 207 |
' ' Text.Whitespace |
| 208 |
'""' Literal.String.Double |
| 209 |
'}' Punctuation |
| 210 |
'\n' Text.Whitespace |
| 211 |
|
| 212 |
'{' Punctuation |
| 213 |
'"@vocab"' Name.Decorator |
| 214 |
':' Punctuation |
| 215 |
' ' Text.Whitespace |
| 216 |
'""' Literal.String.Double |
| 217 |
'}' Punctuation |
| 218 |
'\n\n' Text.Whitespace |
| 219 |
|
| 220 |
'// Not keywords' Comment.Single |
| 221 |
'\n' Text.Whitespace |
| 222 |
|
| 223 |
'{' Punctuation |
| 224 |
'"@bogus"' Name.Tag |
| 225 |
':' Punctuation |
| 226 |
' ' Text.Whitespace |
| 227 |
'""' Literal.String.Double |
| 228 |
'}' Punctuation |
| 229 |
' ' Text.Whitespace |
| 230 |
'// "@" does not guarantee a keyword match' Comment.Single |
| 231 |
'\n' Text.Whitespace |
| 232 |
|
| 233 |
'{' Punctuation |
| 234 |
'"@bases"' Name.Tag |
| 235 |
':' Punctuation |
| 236 |
' ' Text.Whitespace |
| 237 |
'""' Literal.String.Double |
| 238 |
'}' Punctuation |
| 239 |
' ' Text.Whitespace |
| 240 |
'// keyword is "base"' Comment.Single |
| 241 |
'\n' Text.Whitespace |
| 242 |
|
| 243 |
'{' Punctuation |
| 244 |
'"container"' Name.Tag |
| 245 |
':' Punctuation |
| 246 |
' ' Text.Whitespace |
| 247 |
'""' Literal.String.Double |
| 248 |
'}' Punctuation |
| 249 |
' ' Text.Whitespace |
| 250 |
'// no leading "@"' Comment.Single |
| 251 |
'\n' Text.Whitespace |