mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-13 17:14:05 -08:00
Add a README.md to textparse package about how to update lexers.
Signed-off-by: Callum Styan <callumstyan@gmail.com>
This commit is contained in:
parent
4fb9f1605f
commit
54e3fc82f1
6
pkg/textparse/README.md
Normal file
6
pkg/textparse/README.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# Making changes to textparse lexers
|
||||||
|
In the rare case that you need to update the textparse lexers, edit promlex.l or openmetricslex.l and then run the following command:
|
||||||
|
`golex -o=promlex.l.go promlex.l`
|
||||||
|
|
||||||
|
Note that you need golex installed:
|
||||||
|
`go get -u modernc.org/golex`
|
Loading…
Reference in a new issue