]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_hash.C
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_hash.C
index edf63d142eec6a1df4fdc5065bc62e59e17cd157..dcc7643a130755148559b5ec585fee340afeadd8 100644 (file)
@@ -8,11 +8,13 @@
 
 #include <map>
 
+using std::map;
 
 namespace {
 
-// global
-std::map<string, latexkeys> theWordList;
+// file scope
+typedef map<string, latexkeys> WordList;
+WordList theWordList;
 
 
 struct key_type {
@@ -25,7 +27,7 @@ struct key_type {
 };
 
 
-key_type wordlist_array[] = 
+key_type wordlist_array[] =
 {
        {"!",  LM_TK_SPACE, 0},
        {"#",  LM_TK_SPECIAL, '#'},
@@ -64,6 +66,7 @@ key_type wordlist_array[] =
        {"coth",  LM_TK_FUNC, 0},
        {"csc",  LM_TK_FUNC, 0},
        {"ddot",  LM_TK_DECORATION, 0},
+       {"dddot",  LM_TK_DECORATION, 0},
        {"ddots",  LM_TK_DOTS, 0},
        {"deg",  LM_TK_FUNC, 0},
        {"det",  LM_TK_FUNCLIM, 0},
@@ -81,7 +84,6 @@ key_type wordlist_array[] =
        {"inf",  LM_TK_FUNCLIM, 0},
        {"it",  LM_TK_OLDFONT, LM_TC_IT},
        {"ker",  LM_TK_FUNC, 0},
-       {"kern",  LM_TK_KERN, 0},
        {"label",  LM_TK_LABEL, 0},
        {"lefteqn",  LM_TK_LEFTEQN, 1},
        {"ldots",  LM_TK_DOTS, 0},
@@ -94,6 +96,7 @@ key_type wordlist_array[] =
        {"ln",  LM_TK_FUNC, 0},
        {"log",  LM_TK_FUNC, 0},
        {"lyxbox",  LM_TK_BOX, 0},
+       {"lyxnegspace",  LM_TK_SPACE, 6},
        {"mathbb",  LM_TK_FONT, LM_TC_BB},
        {"mathbf",  LM_TK_FONT, LM_TC_BF},
        {"mathcal",  LM_TK_FONT, LM_TC_CAL},
@@ -115,6 +118,7 @@ key_type wordlist_array[] =
        {"overleftarrow",  LM_TK_DECORATION, 0},
        {"overline",  LM_TK_DECORATION, 0},
        {"overrightarrow",  LM_TK_DECORATION, 0},
+       {"overleftrightarrow", LM_TK_DECORATION, 0},
        {"protect",  LM_TK_PROTECT, 0},
        {"qquad",  LM_TK_SPACE, 5},
        {"quad",  LM_TK_SPACE, 4},
@@ -140,6 +144,7 @@ key_type wordlist_array[] =
        {"underleftarrow", LM_TK_DECORATION, 0},
        {"underline",  LM_TK_DECORATION, 0},
        {"underrightarrow", LM_TK_DECORATION, 0},
+       {"underleftrightarrow", LM_TK_DECORATION, 0},
        {"underset",  LM_TK_UNDERSET, 0},
        {"vdots",  LM_TK_DOTS, 0},
        {"vec",  LM_TK_DECORATION, 0},
@@ -194,6 +199,7 @@ void readSymbols(string const & filename)
        }
 }
 
+
 void initSymbols()
 {
        unsigned const n = sizeof(wordlist_array) / sizeof(wordlist_array[0]);
@@ -227,6 +233,6 @@ latexkeys const * in_word_set(string const & str)
                initialized = true;
        }
 
-       std::map<string, latexkeys>::iterator it = theWordList.find(str);
+       WordList::iterator it = theWordList.find(str);
        return (it != theWordList.end()) ? &(it->second) : 0;
 }