|
256 | 256 | # ^^^^^^^^^^ constant.character.escape.terraform |
257 | 257 | # ^ punctuation.definition.string.end.terraform |
258 | 258 |
|
| 259 | + |
| 260 | +///// |
| 261 | +// Matches IPs and CIDR |
| 262 | +///// |
| 263 | + |
| 264 | + "1.2.3.4" |
| 265 | +# ^^^^^^^^^ meta.string.terraform string.quoted.double.terraform |
| 266 | +# ^ punctuation.definition.string.begin.terraform |
| 267 | +# ^^^^^^^ meta.number.integer.other.terraform constant.numeric.ip-address.v4.terraform |
| 268 | +# ^ punctuation.definition.string.end.terraform |
| 269 | + |
| 270 | + "1.2.3.4/32" |
| 271 | +# ^^^^^^^^^^^^ meta.string.terraform string.quoted.double.terraform |
| 272 | +# ^ punctuation.definition.string.begin.terraform |
| 273 | +# ^^^^^^^ meta.number.integer.other.terraform constant.numeric.ip-address.v4.terraform |
| 274 | +# ^ punctuation.separator.terraform |
| 275 | +# ^^ constant.other.range.terraform |
| 276 | +# ^ punctuation.definition.string.end.terraform |
| 277 | + |
| 278 | + "1.2.3.4:8080" |
| 279 | +# ^^^^^^^^^^^^^^ meta.string.terraform string.quoted.double.terraform |
| 280 | +# ^ punctuation.definition.string.begin.terraform |
| 281 | +# ^^^^^^^ meta.number.integer.other.terraform constant.numeric.ip-address.v4.terraform |
| 282 | +# ^ punctuation.separator.terraform |
| 283 | +# ^^^^ constant.other.port.terraform |
| 284 | +# ^ punctuation.definition.string.end.terraform |
| 285 | + |
| 286 | + "1.2.3.4/33" |
| 287 | +# ^^^^^^^^^^^^ meta.string.terraform string.quoted.double.terraform |
| 288 | +# ^ punctuation.definition.string.begin.terraform |
| 289 | +# ^^^^^^^^^^ - constant - punctuation |
| 290 | +# ^ punctuation.definition.string.end.terraform |
| 291 | + |
| 292 | + "256.2.3.4" |
| 293 | +# ^^^^^^^^^^^ - constant |
| 294 | + |
| 295 | + "::1" |
| 296 | +# ^^^^^ meta.string.terraform string.quoted.double.terraform |
| 297 | +# ^ punctuation.definition.string.begin.terraform |
| 298 | +# ^^^ meta.number.integer.other.terraform constant.numeric.ip-address.v6.terraform |
| 299 | +# ^ punctuation.definition.string.end.terraform |
| 300 | + |
| 301 | + "deed" |
| 302 | +# ^^^^^^ meta.string.terraform string.quoted.double.terraform - constant |
| 303 | +# ^ punctuation.definition.string.begin.terraform |
| 304 | +# ^ punctuation.definition.string.end.terraform |
| 305 | + |
| 306 | + "deed:10:10" |
| 307 | +# ^^^^^^^^^^^^ meta.string.terraform string.quoted.double.terraform - constant |
| 308 | +# ^ punctuation.definition.string.begin.terraform |
| 309 | +# ^ punctuation.definition.string.end.terraform |
| 310 | + |
| 311 | + "1:2:3:4:5:6:7:8" |
| 312 | +# ^^^^^^^^^^^^^^^^^ meta.string.terraform string.quoted.double.terraform |
| 313 | +# ^ punctuation.definition.string.begin.terraform |
| 314 | +# ^^^^^^^^^^^^^^^ meta.number.integer.other.terraform constant.numeric.ip-address.v6.terraform |
| 315 | +# ^ punctuation.definition.string.end.terraform |
| 316 | + |
| 317 | + "1:2:3:4:5:6:7:8:8080" |
| 318 | +# ^^^^^^^^^^^^^^^^^^^^^^ meta.string.terraform string.quoted.double.terraform |
| 319 | +# ^ punctuation.definition.string.begin.terraform |
| 320 | +# ^^^^^^^^^^^^^^^^^^^^ - constant - punctuation |
| 321 | +# ^ punctuation.definition.string.end.terraform |
| 322 | + |
| 323 | + "1:2:3:4:5:6:7:8/128" |
| 324 | +# ^^^^^^^^^^^^^^^^^^^^^ meta.string.terraform string.quoted.double.terraform |
| 325 | +# ^ punctuation.definition.string.begin.terraform |
| 326 | +# ^^^^^^^^^^^^^^^ meta.number.integer.other.terraform constant.numeric.ip-address.v6.terraform |
| 327 | +# ^ punctuation.separator.terraform |
| 328 | +# ^^^ constant.other.range.terraform |
| 329 | +# ^ punctuation.definition.string.end.terraform |
| 330 | + |
| 331 | + "1:2:3:4:5:6:7:8/129" |
| 332 | +# ^^^^^^^^^^^^^^^^^^^^^ meta.string.terraform string.quoted.double.terraform |
| 333 | +# ^ punctuation.definition.string.begin.terraform |
| 334 | +# ^^^^^^^^^^^^^^^^^^^ - constant - punctuation |
| 335 | +# ^ punctuation.definition.string.end.terraform |
| 336 | + |
| 337 | + "[1:2:3:4:5:6:7:8]/128" |
| 338 | +# ^^^^^^^^^^^^^^^^^^^^^^^ meta.string.terraform string.quoted.double.terraform |
| 339 | +# ^ punctuation.definition.string.begin.terraform |
| 340 | +# ^^^^^^^^^^^^^^^^^ meta.number.integer.other.terraform constant.numeric.ip-address.v6.terraform |
| 341 | +# ^ punctuation.definition.constant.begin.terraform |
| 342 | +# ^ punctuation.definition.constant.end.terraform |
| 343 | +# ^ punctuation.separator.terraform |
| 344 | +# ^^^ constant.other.range.terraform |
| 345 | +# ^ punctuation.definition.string.end.terraform |
| 346 | + |
| 347 | + "[1:2:3:4:5:6:7:8]:8080" |
| 348 | +# ^^^^^^^^^^^^^^^^^^^^^^^^ meta.string.terraform string.quoted.double.terraform |
| 349 | +# ^ punctuation.definition.string.begin.terraform |
| 350 | +# ^^^^^^^^^^^^^^^^^ meta.number.integer.other.terraform constant.numeric.ip-address.v6.terraform |
| 351 | +# ^ punctuation.definition.constant.begin.terraform |
| 352 | +# ^ punctuation.definition.constant.end.terraform |
| 353 | +# ^ punctuation.separator.terraform |
| 354 | +# ^^^^ constant.other.port.terraform |
| 355 | +# ^ punctuation.definition.string.end.terraform |
| 356 | + |
| 357 | + "[1:2:3:4:5:6:7:8]/129" |
| 358 | +# ^^^^^^^^^^^^^^^^^^^^^ meta.string.terraform string.quoted.double.terraform |
| 359 | +# ^ punctuation.definition.string.begin.terraform |
| 360 | +# ^^^^^^^^^^^^^^^^^^^^^ - constant - punctuation |
| 361 | + |
259 | 362 | ///// |
260 | 363 | // Unclosed strings |
261 | 364 | ///// |
@@ -3458,6 +3561,20 @@ resource "aws_iam_role_policy" "attach-inline-policy-1" { |
3458 | 3561 | # ^ punctuation.section.interpolation.end.terraform |
3459 | 3562 | # ^ string.quoted.double.json punctuation.definition.string.end.json - variable |
3460 | 3563 | # ^ punctuation.separator.sequence.json |
| 3564 | + |
| 3565 | + "IP": "1.2.3.4", |
| 3566 | +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.block.body.terraform meta.function-call.arguments.terraform meta.parens.terraform meta.mapping.value.json meta.sequence.json |
| 3567 | +#^^^^^^^^^^^^^^^ meta.mapping.json |
| 3568 | +# ^^^^ meta.mapping.key.json string.quoted.double.json |
| 3569 | +# ^ punctuation.definition.string.begin.json |
| 3570 | +# ^ punctuation.definition.string.end.json |
| 3571 | +# ^^ meta.mapping.json |
| 3572 | +# ^ punctuation.separator.key-value.json |
| 3573 | +# ^^^^^^^^^ meta.mapping.value.json meta.string.terraform string.quoted.double.terraform |
| 3574 | +# ^ punctuation.definition.string.begin.terraform |
| 3575 | +# ^^^^^^^ meta.number.integer.other.terraform constant.numeric.ip-address.v4.terraform |
| 3576 | +# ^ punctuation.definition.string.end.terraform |
| 3577 | +# ^ meta.mapping.json punctuation.separator.sequence.json |
3461 | 3578 | "Effect": "Allow" |
3462 | 3579 | } |
3463 | 3580 | ] |
|
0 commit comments