diff --git a/.gitmodules b/.gitmodules index a70edd8091..226102affe 100644 --- a/.gitmodules +++ b/.gitmodules @@ -629,6 +629,9 @@ [submodule "vendor/grammars/language-supercollider"] path = vendor/grammars/language-supercollider url = https://github.com/supercollider/language-supercollider +[submodule "vendor/grammars/language-texinfo"] + path = vendor/grammars/language-texinfo + url = https://github.com/Alhadis/language-texinfo [submodule "vendor/grammars/language-toc-wow"] path = vendor/grammars/language-toc-wow url = https://github.com/nebularg/language-toc-wow diff --git a/grammars.yml b/grammars.yml index e29783f528..d3ac98aeb8 100755 --- a/grammars.yml +++ b/grammars.yml @@ -557,6 +557,8 @@ vendor/grammars/language-shellscript: - text.shell-session vendor/grammars/language-supercollider: - source.supercollider +vendor/grammars/language-texinfo: +- text.texinfo vendor/grammars/language-toc-wow: - source.toc vendor/grammars/language-tsql: diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index bc0e17431f..e43fa97973 100755 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -5107,6 +5107,18 @@ Terra: interpreters: - lua language_id: 371 +Texinfo: + type: prose + wrap: true + extensions: + - ".texinfo" + - ".texi" + - ".txi" + ace_mode: text + tm_scope: text.texinfo + interpreters: + - makeinfo + language_id: 988020015 Text: type: prose wrap: true diff --git a/samples/Texinfo/protocol-spec.texi b/samples/Texinfo/protocol-spec.texi new file mode 100644 index 0000000000..3828a1e8f1 --- /dev/null +++ b/samples/Texinfo/protocol-spec.texi @@ -0,0 +1,520 @@ +\input texinfo +@setfilename protocol-spec.texi +@settitle ruby-debug-ide protocol + +@set RDEBUG_IDE @emph{ruby-debug-ide} +@set RDEBUG_BASE @emph{ruby-debug-base} + +@titlepage +@title ruby-debug-ide protocol +@subtitle @value{EDITION} Edition +@subtitle @value{UPDATED-MONTH} +@author Markus Barchfeld and Martin Krauskopf +@end titlepage + +@page + +@node Top, Summary, (dir), (dir) +@top @value{RDEBUG_IDE} protocol + +This file contains specification of the protocol used by @value{RDEBUG_IDE}. + +@menu +* Summary:: +* Specification:: +* Changes:: +@end menu + +@node Summary +@chapter Summary + +This document describes protocol used by @value{RDEBUG_IDE} for communication +between debugger engine and a frontend. It is a work in progress and might, and +very likely will, change in the future. If you have any comments or questions +please @email{martin.krauskopf@@gmail.com, send me} an email. + +The communication has two parts/sides. First ones are @emph{commands} sent from +a frontend to the debugger engine and the second is the opposite way, +@emph{answers} and @emph{events} sent from the debugger engine to the frontend. + +@emph{commands} are almost the same as the ones used by CLI ruby-debug. So you +might want to contact @url{http://bashdb.sourceforge.net/ruby-debug.html, the +@value{RDEBUG_IDE} document}. + +@emph{answers} and @emph{events} are sent in XML format described in the specification @ref{Specification, below}. + +@strong{Specification is far from complete.} Will be completed as time permits. +In the meantime, source code is always the best spec. + +@node Specification +@chapter Specification + +@menu +* Commands:: +* Events:: +@end menu + +Terms: +@itemize @bullet +@item @emph{Command} is what frontend sends to the debugger engine +@item @emph{Answer} is what debugger engine sends back to the frontend +@item @emph{Example} shows simple example +@end itemize + + +@c Commands +@node Commands +@section Commands + +@menu +* Adding Breakpoint:: +* Deleting Breakpoint:: +* Enabling Breakpoint:: +* Disabling Breakpoint:: +* Condition:: +* Catchpoint:: +* Threads:: +* Frames:: +* Variables:: +@end menu + +@c Adding Breakpoint +@node Adding Breakpoint +@subsection Adding Breakpoint + +Command: + +@smallexample + break