Add support for Qt's QML language
[ohcount] / src / languages.h
1 // languages.h written by Mitchell Foral. mitchell<att>caladbolg.net.
2 // See COPYING for license information.
3
4 #ifndef OHCOUNT_LANGUAGES_H
5 #define OHCOUNT_LANGUAGES_H
6
7 #include <string.h>
8
9 #define LANG_ACTIONSCRIPT "actionscript"
10 #define LANG_ADA "ada"
11 #define LANG_ASSEMBLER "assembler"
12 #define LANG_AUTOCONF "autoconf"
13 #define LANG_AUTOMAKE "automake"
14 #define LANG_AWK "awk"
15 #define LANG_BRAINFUCK "brainfuck"
16 #define LANG_BFPP "bfpp"
17 #define LANG_BAT "bat"
18 #define LANG_BLITZMAX "blitzmax"
19 #define LANG_BOO "boo"
20 #define LANG_C "c"
21 #define LANG_CHAISCRIPT "chaiscript"
22 #define LANG_CLASSIC_BASIC "classic_basic"
23 #define LANG_CLEARSILVER "clearsilver"
24 #define LANG_CLEARSILVER_TEMPLATE "clearsilver_template"
25 #define LANG_CLOJURE "clojure"
26 #define LANG_CMAKE "cmake"
27 #define LANG_COFFEESCRIPT "coffeescript"
28 #define LANG_CPP "cpp"
29 #define LANG_CS_ASPX "cs_aspx"
30 #define LANG_CSHARP "csharp"
31 #define LANG_CSS "css"
32 #define LANG_CUDA "cuda"
33 #define LANG_DCL "dcl"
34 #define LANG_DMD "dmd"
35 #define LANG_DYLAN "dylan"
36 #define LANG_EBUILD "ebuild"
37 #define LANG_EC "ec"
38 #define LANG_EIFFEL "eiffel"
39 #define LANG_ERLANG "erlang"
40 #define LANG_EXHERES "exheres"
41 #define LANG_EMACSLISP "emacslisp"
42 #define LANG_FACTOR "factor"
43 #define LANG_FORTRANFIXED "fortranfixed"
44 #define LANG_FORTRANFREE "fortranfree"
45 #define LANG_FSHARP "fsharp"
46 #define LANG_GLSL "glsl"
47 #define LANG_GOLANG "golang"
48 #define LANG_GROOVY "groovy"
49 #define LANG_HASKELL "haskell"
50 #define LANG_HAML "haml"
51 #define LANG_HAXE "haxe"
52 #define LANG_HTML "html"
53 #define LANG_IDL_PVWAVE "idl_pvwave"
54 #define LANG_JAM "jam"
55 #define LANG_JAVA "java"
56 #define LANG_JAVASCRIPT "javascript"
57 #define LANG_JSP "jsp"
58 #define LANG_LIMBO "limbo"
59 #define LANG_LISP "lisp"
60 #define LANG_LUA "lua"
61 #define LANG_MAKE "make"
62 #define LANG_MATLAB "matlab"
63 #define LANG_METAFONT "metafont"
64 #define LANG_METAPOST "metapost"
65 #define LANG_METAPOST_WITH_TEX "metapost_with_tex"
66 #define LANG_MODULA2 "modula2"
67 #define LANG_MODULA3 "modula3"
68 #define LANG_MXML "mxml"
69 #define LANG_NIX "nix"
70 #define LANG_NSIS "nsis"
71 #define LANG_OBERON "oberon"
72 #define LANG_OBJECTIVE_C "objective_c"
73 #define LANG_OBJECTIVE_J "objective_j"
74 #define LANG_OCAML "ocaml"
75 #define LANG_OCTAVE "octave"
76 #define LANG_PASCAL "pascal"
77 #define LANG_PERL "perl"
78 #define LANG_PHP "php"
79 #define LANG_PIKE "pike"
80 #define LANG_PUPPET "puppet"
81 #define LANG_PYTHON "python"
82 #define LANG_QML "qml"
83 #define LANG_R "r"
84 #define LANG_RACKET "racket"
85 #define LANG_REBOL "rebol"
86 #define LANG_REXX "rexx"
87 #define LANG_RHTML "rhtml"
88 #define LANG_RUBY "ruby"
89 #define LANG_SCALA "scala"
90 #define LANG_SCHEME "scheme"
91 #define LANG_SCILAB "scilab"
92 #define LANG_SHELL "shell"
93 #define LANG_SMALLTALK "smalltalk"
94 #define LANG_STRATEGO "stratego"
95 #define LANG_STRUCTURED_BASIC "structured_basic"
96 #define LANG_SQL "sql"
97 #define LANG_TCL "tcl"
98 #define LANG_TEX "tex"
99 #define LANG_VALA "vala"
100 #define LANG_VB_ASPX "vb_aspx"
101 #define LANG_VHDL "vhdl"
102 #define LANG_VIM "vim"
103 #define LANG_VISUALBASIC "visualbasic"
104 #define LANG_XAML "xaml"
105 #define LANG_XML "xml"
106 #define LANG_XSLT "xslt"
107 #define LANG_XMLSCHEMA "xmlschema"
108
109 // For gperf.
110 struct LanguageMap { const char *key; const char *name; const char *nice_name; int category; };
111 struct LanguageMap *ohcount_hash_language_from_name(register const char *str, register unsigned int len);
112
113 #endif