This commit is contained in:
zongor 2025-05-03 20:20:16 -04:00
parent c46f0e07a7
commit a1cb38b82b
1 changed files with 3 additions and 3 deletions

View File

@ -10,8 +10,8 @@
"Keywords in Ztl.")
(defvar ztl-types
'("char" "str" "integer" "int" "real"
"logical" "bool" "error" "err"
'("byte" "str" "int" "real"
"logical" "bool" "err"
"i8" "i16" "i32" "i64" "i128"
"f8" "f16" "f32" "f64" "f128")
"Types in Ztl.")
@ -31,7 +31,7 @@
;; Structs (PascalCase)
'("\\b[A-Z][A-Za-z0-9_]*\\b" . font-lock-type-face)
;; Numbers
'("\\b\\([0-9]+\\(?:\\.[0-9]*\\)?\\)\\b" . font-lock-constant-face)
'("\\b\\([0-9]+\\(?:\\.[0-9]*\\)?\\)\\b" . font-lock-number-face)
;; Function calls
'("\\b\\([a-zA-Z_][a-zA-Z0-9_]*\\)\\s-*(" (1 font-lock-function-name-face))
)