Skip to content

Commit

Permalink
add support to new jsonnet stdlib functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gburiola committed Jan 25, 2018
1 parent 8a22762 commit ea7b713
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jsonnet.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ contexts:
- match: \bstd[.](acos|asin|atan|ceil|char|codepoint|cos|exp|exponent)\b
scope: support.function.jsonnet

- match: \bstd[.](filter|floor|force|length|log|makeArray|mantissa)\b
- match: \bstd[.](filter|floor|length|log|makeArray|mantissa)\b
scope: support.function.jsonnet

- match: \bstd[.](objectFields|objectHas|pow|sin|sqrt|tan|type|thisFile)\b
Expand All @@ -30,7 +30,7 @@ contexts:
- match: \bstd[.](filterMap|flattenArrays|foldl|foldr|format|join)\b
scope: support.function.jsonnet

- match: \bstd[.](lines|manifest(Ini|Python(Vars)?)|map|max|min|mod)\b
- match: \bstd[.](lines|manifest(Ini|JsonEx|Python(Vars)?)|map|max|min|mod)\b
scope: support.function.jsonnet

- match: \bstd[.](set|set(Diff|Inter|Member|Union)|sort)\b
Expand All @@ -45,6 +45,9 @@ contexts:
- match: \bstd[.](objectFieldsAll|objectHasAll|parseInt|prune|splitLimit|startsWith)\b
scope: support.function.jsonnet

- match: \bstd[.](equals|isArray|isBoolean|isFunction|isNumber|isObject|isString|native|strReplace)\b
scope: support.function.jsonnet

- match: \b[$]\b
scope: variable.language.jsonnet

Expand Down

0 comments on commit ea7b713

Please sign in to comment.