Skip to content

Commit

Permalink
docs: ensure all metadata keywords are highlighted (#4744)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas authored Mar 3, 2025
1 parent 13517b7 commit 2ee8ec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/theme/prism-include-languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export default function prismIncludeLanguages(
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
greedy: true
},
'keyword': /\b(?:module|export|data|verb|topic|enum|typealias|builtin|config|database|Unit|Time|Int|String|Bool|from|calls|publish|subscribe|ingress|cron|migration|query|column|alias|json|sql|exec|many)\b/,
'keyword': /\b(?:postgres|mysql|module|export|data|verb|topic|enum|typealias|builtin|config|database|Unit|Time|Int|String|Bool|from|calls|publish|subscribe|ingress|cron|migration|query|column|alias|json|sql|exec|many)\b/,
'operator': /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
'punctuation': /[{}[\];(),.:]/,
'boolean': /\b(?:true|false)\b/,
'number': /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,
'directive': {
pattern: /\+[a-zA-Z][a-zA-Z0-9_]*/,
alias: 'function'
alias: 'keyword'
},
'type': {
pattern: /\b(?:GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS)\b/,
Expand Down

0 comments on commit 2ee8ec1

Please sign in to comment.