# 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_]+"
# 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]+"