Skip to content

Commit

Permalink
Merge pull request prometheus#6210 from cstyan/lex-notes
Browse files Browse the repository at this point in the history
Add a README.md to textparse package about how to update lexers.
  • Loading branch information
codesome authored Nov 9, 2019
2 parents c5b3f02 + 54e3fc8 commit 8330801
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/textparse/README.md
Original file line number Diff line number Diff line change
@@ -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`

0 comments on commit 8330801

Please sign in to comment.