renames Grafana Logging ds to Loki

This commit is contained in:
Daniel Lee
2018-12-05 23:13:57 +01:00
parent 3c330c8e4c
commit 721e1d7555
20 changed files with 259 additions and 43 deletions

View File

@@ -0,0 +1,29 @@
/* tslint:disable max-line-length */
const tokenizer = {
comment: {
pattern: /(^|[^\n])#.*/,
lookbehind: true,
},
'context-labels': {
pattern: /(^|\s)\{[^}]*(?=})/,
lookbehind: true,
inside: {
'label-key': {
pattern: /[a-z_]\w*(?=\s*(=|!=|=~|!~))/,
alias: 'attr-name',
},
'label-value': {
pattern: /"(?:\\.|[^\\"])*"/,
greedy: true,
alias: 'attr-value',
},
punctuation: /[{]/,
},
},
// number: /\b-?\d+((\.\d*)?([eE][+-]?\d+)?)?\b/,
operator: new RegExp(`/&&?|\\|?\\||!=?|<(?:=>?|<|>)?|>[>=]?`, 'i'),
punctuation: /[{}`,.]/,
};
export default tokenizer;