"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/keywords_uppercase.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).

keywords_uppercase.lua  (highlight-3.48.tar.bz2):keywords_uppercase.lua  (highlight-3.49.tar.bz2)
--[[ --[[
Sample plugin file for highlight 3.9 Sample plugin file for highlight 3.9
]] ]]
Description="Convert keywords to upper case, if the syntax is not case sensitive ." Description="Convert keywords to upper case, if the syntax is not case sensitive ."
Categories = {"format" }
-- optional parameter: syntax description -- optional parameter: syntax description
function syntaxUpdate(desc) function syntaxUpdate(desc)
if IgnoreCase ~=true then if IgnoreCase ~=true then
return return
end end
function Decorate(token, state) function Decorate(token, state)
if (state == HL_KEYWORD and not token:match("%W")) then if (state == HL_KEYWORD and not token:match("%W")) then
return string.upper(token) return string.upper(token)
 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)