Skip to content

Commit b5be1a1

Browse files
committed
fix: highlight != as operator
1 parent 1bde1ea commit b5be1a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Typst.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ variables:
2222
greeks: (alpha|beta|gamma|delta|epsilon|varepsilon|zeta|eta|theta|vartheta|iota|gamma|kappa|lambda|mu|nu|xi|pi|varpi|rho|varrho|sigma|varsigma|tau|upsilon|phi|varphi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)
2323
non_raw_ident: '[[:alpha:]][-_[:alnum:]]*|_[-_[:alnum:]]+'
2424
identifier: '(?:{{non_raw_ident}})'
25-
operators: ([+*/]=?|\B-=?|=>|==?|[<>]=?|\bnot\s+in\b)
25+
operators: ([+*/]=?|!=|\B-=?|=>|==?|[<>]=?|\bnot\s+in\b)
2626
prefixes: (?:(?:include|import|set|let|if|for|while|show|context|regex)\b)
2727
not_begin_of_emph: '[a-zA-Z0-9]'
2828
not_end_of_emph: '[a-zA-Z0-9]'

0 commit comments

Comments
 (0)