From 66abb92a470ae65385e9949cd617d7980c7a2cd9 Mon Sep 17 00:00:00 2001 From: Matt Carberry Date: Sat, 2 Nov 2013 21:34:29 -0700 Subject: [PATCH] Grammar error and vim syntax highlighting mistake fixed. --- doc/po/rust.md.pot | 2 +- src/etc/vim/syntax/rust.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/po/rust.md.pot b/doc/po/rust.md.pot index 2b682975065..9acefdf8215 100644 --- a/doc/po/rust.md.pot +++ b/doc/po/rust.md.pot @@ -661,7 +661,7 @@ msgstr "" #. type: Plain text #: doc/rust.md:319 -msgid "An _integer literal_ has one of three forms:" +msgid "An _integer literal_ has one of four forms:" msgstr "" #. type: Bullet: ' * ' diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index abac8a32d78..e5ff089e2e1 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -160,7 +160,7 @@ syn match rustNumber display "\<[0-9][0-9_]*\(i\|i8\|i16\|i32\|i64\)\>" syn match rustHexNumber display "\<0x[a-fA-F0-9_]\+\>" syn match rustHexNumber display "\<0x[a-fA-F0-9_]\+\(u\|u8\|u16\|u32\|u64\)\>" -syn match rustHexNumber display "\<0x[0-9_]\+\(i8\|i16\|i32\|i64\)\>" +syn match rustHexNumber display "\<0x[a-fA-F0-9_]\+\(i8\|i16\|i32\|i64\)\>" syn match rustOctNumber display "\<0o[0-7_]\+\>" syn match rustOctNumber display "\<0o[0-7_]\+\(u\|u8\|u16\|u32\|u64\)\>" syn match rustOctNumber display "\<0o[0-7_]\+\(i8\|i16\|i32\|i64\)\>"