]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/brainfuck.js
1 /*! `brainfuck` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar
= (function () {
7 Author: Evgeny Stepanischev <imbolk@gmail.com>
8 Website: https://esolangs.org/wiki/Brainfuck
11 /** @type LanguageFn */
12 function brainfuck(hljs
) {
23 /[^\[\]\.,\+\-<> \r\n]/,
24 /[\[\]\.,\+\-<> \r\n]/,
28 match: /[ ]+[^\[\]\.,\+\-<> \r\n]/,
47 // this mode works as the only relevance counter
48 // it looks ahead to find the start of a run of literals
49 // so only the runs are counted as relevant
62 export default hljsGrammar
;