How to edit default syntax, adding new keyword, to Sublime Text 2?

sublimetext2

Solution

Edit this file:

`~/Library/Application Support/Sublime Text 2/Packages/C++/C.tmLanguage`

Go to approx. line 55 and add `constexpr` to the list

     <dict>
        <key>match</key>
        <string>\b(const|extern|register|restrict|static|volatile|inline)\b</string>
        <key>name</key>
        <string>storage.modifier.c</string>
    </dict>

Problem

I hope the Sublime Text 2 syntax highlighting system to support new C++11 keywords, such as `constexpr`. However, I did not figure out how to achieve it, can anyone help?

Original source

Related problems