prometheus/promql
Julius Volz 46c5260761 Support escape sequences in strings and add raw strings.
This adapts some functionality from the Go standard library for string
literal lexing and unquoting/unescaping.

The following string types are now supported:

Double- or single-quoted strings:

  These support all escape sequences that Go supports in double-quoted
  string literals. The difference is that Prometheus also has
  single-quoted strings (instead of single-quoted runes in Go). Raw
  newlines are not allowed.

Backtick-quoted raw strings:

  Strings quoted in backticks are treated as raw strings just like in Go
  and may contain raw newlines and other special characters directly.

Fixes https://github.com/prometheus/prometheus/issues/1122
Fixes https://github.com/prometheus/prometheus/issues/1121
2015-10-08 19:17:21 +02:00
..
testdata Remove optional vector() 2nd argument 2015-09-13 09:13:22 +01:00
analyzer.go Fix grouping of import blocks 2015-08-22 09:42:45 +02:00
ast.go Merge pull request #1049 from prometheus/bool-nofilter 2015-09-03 15:08:38 +01:00
engine.go promql: Add 'bool' modifier to comparison functions 2015-09-02 14:51:44 +01:00
engine_test.go promql: Reduce flakiness of concurrency test 2015-09-23 10:07:30 +01:00
functions.go Fix scalar construction in function 2015-09-18 16:49:32 +02:00
lex.go Support escape sequences in strings and add raw strings. 2015-10-08 19:17:21 +02:00
lex_test.go promql: Add 'bool' modifier to comparison functions 2015-09-02 14:51:44 +01:00
parse.go Support escape sequences in strings and add raw strings. 2015-10-08 19:17:21 +02:00
parse_test.go Support escape sequences in strings and add raw strings. 2015-10-08 19:17:21 +02:00
printer.go Fix bool modifier in recording rules and printing. 2015-09-10 01:37:05 +02:00
printer_test.go Fix bool modifier in recording rules and printing. 2015-09-10 01:37:05 +02:00
promql_test.go Fix most golint warnings. 2015-08-26 12:44:46 +02:00
quantile.go Switch promql types to common/model 2015-08-25 13:49:14 +02:00
test.go Fix missing return on error 2015-09-18 16:50:13 +02:00