mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
18 lines
252 B
TypeScript
18 lines
252 B
TypeScript
|
|
import { Grammar } from 'prismjs';
|
||
|
|
|
||
|
|
export const tokenizer: Grammar = {
|
||
|
|
key: {
|
||
|
|
pattern: /[^\s]+(?==)/,
|
||
|
|
alias: 'attr-name',
|
||
|
|
},
|
||
|
|
operator: /[=]/,
|
||
|
|
value: [
|
||
|
|
{
|
||
|
|
pattern: /"(.+)"/,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
pattern: /[^\s]+/,
|
||
|
|
},
|
||
|
|
],
|
||
|
|
};
|