Add BrightScript syntax
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.
Reviewers: Framework: Syntax Highlighting, cullmann
Reviewed By: Framework: Syntax Highlighting, cullmann
Subscribers: ngraham, dhaumann, cullmann, kwrite-devel, kde-frameworks-devel
Tags: Kate, Frameworks
Differential Revision: https://phabricator.kde.org/D16677