diff --git a/Nftables.sublime-syntax b/Nftables.sublime-syntax index d8e8b3e..d1591a1 100644 --- a/Nftables.sublime-syntax +++ b/Nftables.sublime-syntax @@ -114,19 +114,16 @@ contexts: values: - include: safe-values + - include: time-string - include: unquoted-string safe-values: - - include: strings + - include: quoted-string - include: network-addresses - include: numerics - include: variables - include: anonymous-set - strings: - - include: quoted-string - - include: time-string - quoted-string: # Apparently nftables supports double-quoted strings only. # `prototype` won't be propagated, but `line-continuation` has to be consumed. @@ -143,14 +140,14 @@ contexts: scope: punctuation.definition.string.end.nftables pop: true - unquoted-string: - - match: \b({{identifier_extended}})\b - scope: string.unquoted.nftables - time-string: - match: \b((?:\d+[wdhms])+)\b scope: string.unquoted.time-string.nftables + unquoted-string: + - match: \b({{identifier_extended}})\b + scope: string.unquoted.nftables + network-addresses: - match: ({{mac_address}}) scope: constant.numeric.mac-address.nftables