Add BrightScript syntax

Authored by cullmann on Nov 11 2018, 2:23 PM.

Description

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

Details

Committed
cullmannNov 11 2018, 2:24 PM
Reviewer
Framework: Syntax Highlighting
Differential Revision
D16677: Add BrightScript syntax
Parents
R216:236214946dbc: GIT_SILENT Upgrade KF5 version to 5.53.0.
Branches
Unknown
Tags
Unknown