Adding support for the Brightscript language, with samples.

This commit is contained in:
Max Peterson
2013-11-21 19:26:44 -06:00
parent 46779da3b5
commit c88585cffb
3 changed files with 580 additions and 3 deletions

View File

@@ -181,6 +181,11 @@ Brainfuck:
extensions:
- .bf
Brightscript:
type: programming
lexer: Text only
primary_extension: .brs
Bro:
type: programming
primary_extension: .bro

View File

@@ -27,6 +27,9 @@
"Bluespec": [
".bsv"
],
"Brightscript": [
".brs"
],
"C": [
".c",
".h"
@@ -477,8 +480,8 @@
".gemrc"
]
},
"tokens_total": 423589,
"languages_total": 488,
"tokens_total": 424168,
"languages_total": 489,
"tokens": {
"ABAP": {
"*/**": 1,
@@ -2573,6 +2576,268 @@
"addRules": 1,
"preempts": 1
},
"Brightscript": {
"**": 17,
"Simple": 1,
"Grid": 2,
"Screen": 2,
"Demonstration": 1,
"App": 1,
"Copyright": 1,
"(": 32,
"c": 1,
")": 31,
"Roku": 1,
"Inc.": 1,
"All": 3,
"Rights": 1,
"Reserved.": 1,
"************************************************************": 2,
"Sub": 2,
"Main": 1,
"set": 2,
"to": 10,
"go": 1,
"time": 1,
"get": 1,
"started": 1,
"while": 4,
"gridstyle": 7,
"<": 1,
"print": 7,
";": 10,
"screen": 5,
"preShowGridScreen": 2,
"showGridScreen": 2,
"end": 2,
"End": 4,
"Set": 1,
"the": 17,
"configurable": 1,
"theme": 3,
"attributes": 2,
"for": 10,
"application": 1,
"Configure": 1,
"custom": 1,
"overhang": 1,
"and": 4,
"Logo": 1,
"are": 2,
"artwork": 2,
"colors": 1,
"offsets": 1,
"specific": 1,
"app": 1,
"******************************************************": 4,
"Screens": 1,
"can": 2,
"make": 1,
"slight": 1,
"adjustments": 1,
"default": 1,
"individual": 1,
"attributes.": 1,
"these": 1,
"greyscales": 1,
"theme.GridScreenBackgroundColor": 1,
"theme.GridScreenMessageColor": 1,
"theme.GridScreenRetrievingColor": 1,
"theme.GridScreenListNameColor": 1,
"used": 1,
"in": 3,
"theme.CounterTextLeft": 1,
"theme.CounterSeparator": 1,
"theme.CounterTextRight": 1,
"theme.GridScreenLogoHD": 1,
"theme.GridScreenLogoOffsetHD_X": 1,
"theme.GridScreenLogoOffsetHD_Y": 1,
"theme.GridScreenOverhangHeightHD": 1,
"theme.GridScreenLogoSD": 1,
"theme.GridScreenOverhangHeightSD": 1,
"theme.GridScreenLogoOffsetSD_X": 1,
"theme.GridScreenLogoOffsetSD_Y": 1,
"theme.GridScreenFocusBorderSD": 1,
"theme.GridScreenFocusBorderHD": 1,
"use": 1,
"your": 1,
"own": 1,
"description": 1,
"background": 1,
"theme.GridScreenDescriptionOffsetSD": 1,
"theme.GridScreenDescriptionOffsetHD": 1,
"return": 5,
"Function": 5,
"Perform": 1,
"any": 1,
"startup/initialization": 1,
"stuff": 1,
"prior": 1,
"style": 6,
"as": 2,
"string": 3,
"As": 3,
"Object": 2,
"m.port": 3,
"CreateObject": 2,
"screen.SetMessagePort": 1,
"screen.": 1,
"The": 1,
"will": 3,
"show": 1,
"retreiving": 1,
"categoryList": 4,
"getCategoryList": 1,
"[": 3,
"]": 4,
"+": 1,
"screen.setupLists": 1,
"categoryList.count": 2,
"screen.SetListNames": 1,
"StyleButtons": 3,
"getGridControlButtons": 1,
"screen.SetContentList": 2,
"i": 3,
"-": 15,
"getShowsForCategoryItem": 1,
"screen.Show": 1,
"true": 1,
"msg": 3,
"wait": 1,
"getmessageport": 1,
"does": 1,
"not": 2,
"work": 1,
"on": 1,
"gridscreen": 1,
"type": 2,
"if": 3,
"then": 3,
"msg.GetMessage": 1,
"msg.GetIndex": 3,
"msg.getData": 2,
"msg.isListItemFocused": 1,
"else": 1,
"msg.isListItemSelected": 1,
"row": 2,
"selection": 3,
"yes": 1,
"so": 2,
"we": 3,
"come": 1,
"back": 1,
"with": 2,
"new": 1,
".Title": 1,
"endif": 1,
"**********************************************************": 1,
"this": 3,
"function": 1,
"passing": 1,
"an": 1,
"roAssociativeArray": 2,
"be": 2,
"sufficient": 1,
"springboard": 2,
"display": 2,
"add": 1,
"code": 1,
"create": 1,
"now": 1,
"do": 1,
"nothing": 1,
"Return": 1,
"list": 1,
"of": 5,
"categories": 1,
"filter": 1,
"all": 1,
"categories.": 1,
"just": 2,
"static": 1,
"data": 2,
"example.": 1,
"********************************************************************": 1,
"ContentMetaData": 1,
"objects": 1,
"shows": 1,
"category.": 1,
"For": 1,
"example": 1,
"cheat": 1,
"but": 2,
"ideally": 1,
"you": 1,
"dynamically": 1,
"content": 2,
"each": 1,
"category": 1,
"is": 1,
"dynamic": 1,
"s": 1,
"one": 3,
"small": 1,
"step": 1,
"a": 4,
"man": 1,
"giant": 1,
"leap": 1,
"mankind.": 1,
"http": 14,
"//upload.wikimedia.org/wikipedia/commons/1/1e/Apollo_11_first_step.jpg": 2,
"I": 2,
"have": 2,
"Dream": 1,
"PG": 1,
"dream": 1,
"that": 1,
"my": 1,
"four": 1,
"little": 1,
"children": 1,
"day": 1,
"live": 1,
"nation": 1,
"where": 1,
"they": 1,
"judged": 1,
"by": 2,
"color": 1,
"their": 2,
"skin": 1,
"character.": 1,
"//upload.wikimedia.org/wikipedia/commons/8/81/Martin_Luther_King_": 2,
"_March_on_Washington.jpg": 2,
"Flat": 6,
"Movie": 2,
"HD": 6,
"x2": 4,
"SD": 5,
"Netflix": 1,
"//upload.wikimedia.org/wikipedia/commons/4/43/Gold_star_on_blue.gif": 2,
"Landscape": 1,
"x3": 6,
"Channel": 1,
"Store": 1,
"//upload.wikimedia.org/wikipedia/commons/thumb/9/96/Dunkery_Hill.jpg/800px": 2,
"Dunkery_Hill.jpg": 2,
"Portrait": 1,
"x4": 1,
"posters": 3,
"//upload.wikimedia.org/wikipedia/commons/9/9f/Kane_George_Gurnett.jpg": 2,
"Square": 1,
"x1": 1,
"//upload.wikimedia.org/wikipedia/commons/thumb/d/de/SQUARE_SHAPE.svg/536px": 2,
"SQUARE_SHAPE.svg.png": 2,
"x9": 1,
"//upload.wikimedia.org/wikipedia/commons/thumb/2/22/": 2,
"%": 8,
"C3": 4,
"cran_TV_plat.svg/200px": 2,
"cran_TV_plat.svg.png": 2,
"}": 1,
"buttons": 1
},
"C": {
"#include": 150,
"const": 358,
@@ -43369,6 +43634,7 @@
"Awk": 544,
"BlitzBasic": 2065,
"Bluespec": 1298,
"Brightscript": 579,
"C": 58858,
"C++": 21308,
"Ceylon": 50,
@@ -43495,6 +43761,7 @@
"Awk": 1,
"BlitzBasic": 3,
"Bluespec": 2,
"Brightscript": 1,
"C": 26,
"C++": 19,
"Ceylon": 1,
@@ -43610,5 +43877,5 @@
"Xtend": 2,
"YAML": 1
},
"md5": "e0528838deafd471674bb0a8d79906ce"
"md5": "d77910fe214f3654d7538485c7388f89"
}