]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/processing.js
1 /*! `processing` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar
= (function () {
7 Description: Processing is a flexible software sketchbook and a language for learning how to code within the context of the visual arts.
8 Author: Erik Paluka <erik.paluka@gmail.com>
9 Website: https://processing.org
13 function processing(hljs
) {
14 const regex
= hljs
.regex
;
77 "keyPressedkeyReleased",
186 "PrintWritersaveBytes",
232 "PShaderresetShader",
278 const IDENT
= hljs
.IDENT_RE
;
279 const FUNC_NAME
= { variants: [
281 match: regex
.concat(regex
.either(...BUILT_INS
), regex
.lookahead(/\s*\(/)),
282 className: "built_in"
287 /\b(?!for|if|while)/,
288 IDENT
, regex
.lookahead(/\s*\(/)),
289 className: "title.function"
308 className: { 2: "property" }
331 7: "title.class.inherited"
369 const JAVA_KEYWORDS
= [
414 keyword: [ ...JAVA_KEYWORDS
],
415 literal: 'P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false',
417 variable: "super this",
429 hljs
.C_LINE_COMMENT_MODE
,
430 hljs
.C_BLOCK_COMMENT_MODE
,
431 hljs
.APOS_STRING_MODE
,
432 hljs
.QUOTE_STRING_MODE
,
442 export default hljsGrammar
;