Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update prism-pascal.js #2653

Merged
merged 5 commits into from Oct 4, 2021
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion components/prism-pascal.js
Expand Up @@ -5,9 +5,17 @@
*/

Prism.languages.pascal = {
'asm': {
pattern: /(asm)([\s\S]+?)(end)/i,
RunDevelopment marked this conversation as resolved.
Show resolved Hide resolved
lookbehind: true,
inside:{keyword:/end/i,punctuation:/;$/i}
RunDevelopment marked this conversation as resolved.
Show resolved Hide resolved
},
'directive': [
/\{\$[\s\S]+?\}/
],
RunDevelopment marked this conversation as resolved.
Show resolved Hide resolved
'comment': [
/\(\*[\s\S]+?\*\)/,
/\{[\s\S]+?\}/,
/\{[^$][\s\S]+?\}/,
RunDevelopment marked this conversation as resolved.
Show resolved Hide resolved
/\/\/.*/
],
'string': {
Expand Down