]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/basic.js
1 /*! `basic` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar
= (function () {
7 Author: Raphaël Assénat <raph@raphnet.net>
8 Description: Based on the BASIC reference from the Tandy 1000 guide
9 Website: https://en.wikipedia.org/wiki/Tandy_1000
13 /** @type LanguageFn */
14 function basic(hljs
) {
197 case_insensitive: true,
199 // Support explicitly typed variables that end with $%! or #.
201 $pattern: '[a-zA-Z][a-zA-Z0-9_$%!#]*',
206 // Match strings that start with " and end with " or a line break
210 contains: [ hljs
.BACKSLASH_ESCAPE
]
212 hljs
.COMMENT('REM', '$', { relevance: 10 }),
213 hljs
.COMMENT('\'', '$', { relevance: 0 }),
215 // Match line numbers
221 // Match typed numeric constants (1000, 12.34!, 1.2e5, 1.5#, 1.2D2)
223 begin: '\\b\\d+(\\.\\d+)?([edED]\\d+)?[#\!]?',
227 // Match hexadecimal numbers (&Hxxxx)
229 begin: '(&[hH][0-9a-fA-F]{1,4})'
232 // Match octal numbers (&Oxxxxxx)
234 begin: '(&[oO][0-7]{1,6})'
244 export default hljsGrammar
;