Add support for GDB scripts (#456)

This commit is contained in:
XAMPPRocky 2020-03-04 19:56:46 +01:00 committed by GitHub
parent 6ab6ea306f
commit 1b3e6d01fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 0 deletions

View file

@ -378,6 +378,7 @@ Forth
FORTRAN Legacy
FORTRAN Modern
F*
GDB Script
GDScript
Gherkin (Cucumber)
GLSL

View file

@ -666,6 +666,16 @@
"fsscript"
]
},
"GDB":{
"name":"GDB Script",
"base":"hash",
"line_comment":[
"#"
],
"extensions":[
"gdb"
]
},
"GdScript":{
"name":"GDScript",
"base":"hash",

15
tests/data/gdb.gdb Normal file
View file

@ -0,0 +1,15 @@
# 15 lines 7 code 5 comments 3 blanks
#
# This is a comment line. We don't have multi-comment lines
#
macro define offsetof(_type, _memb) ((long)(&((_type *)0)->_memb))
break foo
continue
# Let's have something print when a breakpoint is hit.
commands 2
p i
continue
end