Skip to content

Commit

Permalink
Update syntax highlighting to better support terraform 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
MattFenner authored and mauve committed Jun 5, 2019
1 parent 274380d commit 4eb3d4c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions syntaxes/terraform.json
Expand Up @@ -36,6 +36,11 @@
"match": "\\b(true|false|yes|no|on|off)\\b",
"name": "constant.language.terraform"
},
{
"comment": "Primitive types",
"match": "\\b(string|number|bool)\\b",
"name": "support.type.primitive.terraform"
},
{
"comment": "Numbers",
"match": "\\b([0-9]+)([kKmMgG]b?)?\\b",
Expand Down Expand Up @@ -137,6 +142,24 @@
"comment": "Value assignments (left hand side in double quotes)",
"match": "(\")([\\w_-]+)(\")\\s*(=)\\s*"
},
{
"captures": {
"0": {
"name": "entity.name.function.terraform"
}
},
"comment": "Function Calls",
"match": "([\\w-]+)\\s*\\("
},
{
"captures": {
"0": {
"name": "variable.other.terraform"
}
},
"comment": "Variables",
"match": "([\\w-]+)"
},
{
"captures": {
"1": {
Expand Down

0 comments on commit 4eb3d4c

Please sign in to comment.