Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/tree-sitter-omega/blob/main/test/highlight/basics.om # tree-sitter-omega aien-dev/tree-sitter-omega Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `tree-sitter-omega / test / highlight / basics.om` 36 lines ยท 663 bytes Raw Blame History 1 note a highlight test; assertion lines are note lines 2 note <- comment 3 fn gcd a uint b uint to uint 4 note <- keyword 5 note ^ function 6 note ^ variable.parameter 7 note ^ type.builtin 8 note ^ keyword 9 while ne b 0 bound 100 10 note <- keyword.repeat 11 note ^ keyword.operator 12 note ^ number 13 note ^ keyword.repeat 14 t = rem a b 15 note <- variable 16 note ^ keyword.operator 17 end 18 ret a 19 note <- keyword.return 20 end 21 fn main to int 22 x = f64 2.5 23 note ^ number.float 24 s = fsqrt ( x ) 25 note ^ keyword.operator 26 note ^ punctuation.bracket 27 show x 28 note <- function.call 29 if eq s x 30 note <- keyword.conditional 31 ret 0 32 else 33 trap 4 34 note <- keyword.return 35 end 36 end