dlevin created this revision. dlevin added a reviewer: Framework: Syntax Highlighting. Herald added projects: Kate, Frameworks. Herald added subscribers: kde-frameworks-devel, kwrite-devel. dlevin requested review of this revision.
REVISION SUMMARY Accurate implementation of BrightScript language, mostly used by Roku channel developers and documented at Roku SDK portal: https://sdkdocs.roku.com/display/sdkdoc/Roku+SDK+Documentation Highlight sytax covers: - function and sub definitions, both global and inline - comments: ' and REM - macros - print statement - library imports - literal type narrowing with: $, %, !, #, & - conditionals and loops with: if, for and while - built-in and library functions - standard Roku Scene Graph keywords: m, top, global - array, function calls - goto and label statements - built-in types used in function/sub arguments and return - constants: true, false, invalid - distinct assignment and unary/binary ops, e.g.: if a = b c = d ' first = is a comparison, second = is an assignment - invalid syntax detection in some cases No folding is supported at this point. REPOSITORY R216 Syntax Highlighting REVISION DETAIL https://phabricator.kde.org/D16677 AFFECTED FILES autotests/html/brightscript.brs.html autotests/input/brightscript.brs autotests/input/brightscript.brs.syntax autotests/reference/brightscript.brs.ref data/syntax/brightscript.xml To: dlevin, #framework_syntax_highlighting Cc: kwrite-devel, kde-frameworks-devel, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann