]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/rust.micro
Remove duplicate PKGBUILD filetype
[micro.git] / runtime / syntax / rust.micro
index 12293d358b98eb9afd3313bc63a2c7596d04489f..560d4242a3a1f39abde20d349983cbc34266c3b5 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright 2015 The Rust Project Developers.
 #
 # NOTE: Rules are applied in order: later rules re-colorize matching text.
-syntax "Rust" "\.rs"
+syntax "rust" "\.rs"
 
 # function definition
 color identifier "fn [a-z0-9_]+"
@@ -16,6 +16,9 @@ color special "[a-z_]+!"
 # Constants
 color constant "[A-Z][A-Z_]+"
 
+# Numbers
+color constant.number "\b[0-9]+\b"
+
 # Traits/Enums/Structs/Types/etc.
 color type "[A-Z][a-z]+"