"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/cpp_qt.lua" between
highlight-3.48.tar.bz2 and highlight-3.49.tar.bz2

About: highlight converts source code to formatted text with syntax highlighting (for e.g. to HTML, XHTML, RTF, TeX, LaTeX, SVG, BBCode and XML format).

cpp_qt.lua  (highlight-3.48.tar.bz2):cpp_qt.lua  (highlight-3.49.tar.bz2)
--[[ --[[
Sample plugin file for highlight Sample plugin file for highlight
Adds additional keywords to C++ syntax description and corresponding Adds additional keywords to C++ syntax description and corresponding
formatting in colour theme formatting in colour theme
]] ]]
Description="Add Qt keywords to C and C++" Description="Add Qt keywords to C and C++"
Categories = {"c++", "qt" }
-- optional parameter: syntax description -- optional parameter: syntax description
function syntaxUpdate(desc) function syntaxUpdate(desc)
if desc=="C and C++" then if desc=="C and C++" then
-- insert Qt keywords -- insert Qt keywords
table.insert( Keywords, table.insert( Keywords,
{ Id=1, List={"slots" } { Id=1, List={"slots" }
} ) } )
table.insert( Keywords, table.insert( Keywords,
{ Id=2, Regex=[[Q[A-Z]\w+]] { Id=2, Regex=[[Q[A-Z]\w+]]
} ) } )
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)