[emacs] llvm-mode: fix parens, font-lock i*
authorRamkumar Ramachandra <artagnon@gmail.com>
Fri, 23 Jan 2015 19:45:35 +0000 (19:45 +0000)
committerRamkumar Ramachandra <artagnon@gmail.com>
Fri, 23 Jan 2015 19:45:35 +0000 (19:45 +0000)
commitae597a058ae4d12cae9dc61500855ea885aa7930
treecc704da3c3db6f43aba28c680768730e418933fe
parent66e2ddc87074b4d2199126f7c3904b45141e917b
[emacs] llvm-mode: fix parens, font-lock i*

In llvm-mode, with electric-pair-mode turned on, typing a literal '['
would print out '[[', and '(' would print a '(('. This was a very
annoying bug caused by overzealous syntax-table entries: the parens are
already part of the '(' and ')' class by default. Fix this.

While at it, notice that i32, i64, i1 etc. are not font-locked despite a
clear intent to do so. The issue is that regexp-opt doesn't accept
regular expressions. So, spell out the common literal integers with
different widths.

Differential Revision: http://reviews.llvm.org/D7036

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226931 91177308-0d34-0410-b5e6-96231b3b80d8
utils/emacs/llvm-mode.el