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