]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/processing.js
1 /*! `processing` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
8 Description: Processing is a flexible software sketchbook and a language for learning how to code within the context of the visual arts.
9 Author: Erik Paluka <erik.paluka@gmail.com>
10 Website: https://processing.org
14 function processing(hljs
) {
15 const regex
= hljs
.regex
;
78 "keyPressedkeyReleased",
187 "PrintWritersaveBytes",
233 "PShaderresetShader",
279 const IDENT
= hljs
.IDENT_RE
;
280 const FUNC_NAME
= { variants: [
282 match: regex
.concat(regex
.either(...BUILT_INS
), regex
.lookahead(/\s*\(/)),
283 className: "built_in"
288 /\b(?!for|if|while)/,
289 IDENT
, regex
.lookahead(/\s*\(/)),
290 className: "title.function"
309 className: { 2: "property" }
332 7: "title.class.inherited"
370 const JAVA_KEYWORDS
= [
415 keyword: [ ...JAVA_KEYWORDS
],
416 literal: 'P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false',
418 variable: "super this",
430 hljs
.C_LINE_COMMENT_MODE
,
431 hljs
.C_BLOCK_COMMENT_MODE
,
432 hljs
.APOS_STRING_MODE
,
433 hljs
.QUOTE_STRING_MODE
,
443 hljs
.registerLanguage('processing', hljsGrammar
);