mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-28 17:20:22 +00:00
Fixed support for "BlitzMax"
- language was already defined but missed "type: programming", so detection of "BlitzMax"-files did not work. Fixed that. - added "BlitzMax"-example to samples (and recreated samples.json)
This commit is contained in:
@@ -222,6 +222,8 @@ BlitzBasic:
|
||||
- .decls
|
||||
|
||||
BlitzMax:
|
||||
type: programming
|
||||
color: "#cd6400"
|
||||
extensions:
|
||||
- .bmx
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
25
samples/BlitzMax/sample.bmx
Normal file
25
samples/BlitzMax/sample.bmx
Normal file
@@ -0,0 +1,25 @@
|
||||
SuperStrict
|
||||
|
||||
Framework Brl.StandardIO
|
||||
|
||||
Type TMyType
|
||||
Field property:int
|
||||
|
||||
Function A:int(param:int)
|
||||
'do nothing
|
||||
End Function
|
||||
|
||||
Method B:int(param:int)
|
||||
'do nothing
|
||||
End Method
|
||||
End Type
|
||||
|
||||
|
||||
Global my:TMyType = new TMyType
|
||||
?Win32
|
||||
my.A()
|
||||
my.B()
|
||||
?Linux
|
||||
my.B()
|
||||
my.A()
|
||||
?
|
||||
Reference in New Issue
Block a user