From 4b0f5a08432dfd77d87b90bf5faf3637b629663c Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 27 Jun 2009 01:11:38 +0000 Subject: emacs .pc mode: Numbers should be recognized before identifiers git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@74365 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/emacs/klee-pc-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/emacs/klee-pc-mode.el b/utils/emacs/klee-pc-mode.el index e64758ef..3d68b1cf 100644 --- a/utils/emacs/klee-pc-mode.el +++ b/utils/emacs/klee-pc-mode.el @@ -34,13 +34,13 @@ '("\\bEq\\b\\|\\bNe\\b\\|\\bOr\\b\\|\\bAdd\\b\\|\\bSub\\b\\|\\bMul\\b\\|\\bAnd\\b\\|\\bShl\\b\\|\\bXor\\b\\|\\bNot\\b\\|\\bNeg\\b\\|\\bUlt\\b\\|\\bUle\\b\\|\\bUgt\\b\\|\\bUge\\b\\|\\bSlt\\b\\|\\bSle\\b\\|\\bSgt\\b\\|\\bSge\\b\\|\\bRead\\b\\|\\bAShr\\b\\|\\bLShr\\b\\|\\bUDiv\\b\\|\\bSDiv\\b\\|\\bURem\\b\\|\\bSRem\\b\\|\\bSExt\\b\\|\\bZExt\\b\\|\\bConcat\\b\\|\\bSelect\\b\\|\\bExtract\\b\\|\\bReadLSB\\b\\|\\bReadMSB\\b" . font-lock-function-name-face) ;; Types '("w[0-9]+" . font-lock-type-face) - ;; Identifiers - '("[_a-zA-Z][a-zA-Z_.0-9]*" . font-lock-variable-name-face) ;; Numbers '("[+-]?0b[01_]+" . font-lock-preprocessor-face) '("[+-]?0o[0-7_]+" . font-lock-preprocessor-face) '("[+-]?0x[a-zA-Z0-9_]+" . font-lock-preprocessor-face) '("[+-]?[0-9]+" . font-lock-preprocessor-face) + ;; Identifiers + '("[_a-zA-Z][a-zA-Z_.0-9]*" . font-lock-variable-name-face) ) "klee-PC mode keywords") -- cgit 1.4.1