Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion highlightjs_al/dist/al.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion highlightjs_al/src/al.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,12 @@ export default function(hljs) {
name: 'AL',
aliases: ['al'],
case_insensitive: true,
// AL wins Highlight.js's own C/AL detection fixture, which is not
// surprising given C/AL is AL's predecessor and the two look almost
// identical to a heuristic. Auto-detection is therefore disabled, as
// Highlight.js recommends when a grammar cannot pass the detect suite.
// Explicit registration and language-al are unaffected.
disableAutodetect: true,
keywords: KEYWORDS,
illegal: /\/\*/,
contains: [
Expand All @@ -387,7 +393,7 @@ export default function(hljs) {
className: 'meta',
begin: '#', end: '$',
keywords: {
'meta-keyword': 'if else elif endif define undef region endregion pragma'
keyword: 'if else elif endif define undef region endregion pragma'
}
},
STRING,
Expand Down