]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/step21.js
1 /*! `step21` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
8 Contributors: Adam Joseph Cook <adam.joseph.cook@gmail.com>
9 Description: Syntax highlighter for STEP Part 21 files (ISO 10303-21).
10 Website: https://en.wikipedia.org/wiki/ISO_10303-21
14 function step21(hljs
) {
15 const STEP21_IDENT_RE
= '[A-Z_][A-Z0-9_.]*';
16 const STEP21_KEYWORDS
= {
17 $pattern: STEP21_IDENT_RE
,
24 const STEP21_START
= {
26 begin: 'ISO-10303-21;',
29 const STEP21_CLOSE
= {
31 begin: 'END-ISO-10303-21;',
42 case_insensitive: true, // STEP 21 is case insensitive in theory, in practice all non-comments are capitalized.
43 keywords: STEP21_KEYWORDS
,
47 hljs
.C_LINE_COMMENT_MODE
,
48 hljs
.C_BLOCK_COMMENT_MODE
,
49 hljs
.COMMENT('/\\*\\*!', '\\*/'),
51 hljs
.inherit(hljs
.APOS_STRING_MODE
, { illegal: null }),
52 hljs
.inherit(hljs
.QUOTE_STRING_MODE
, { illegal: null }),
76 hljs
.registerLanguage('step21', hljsGrammar
);