New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dhcpd #772
Merged
Merged
dhcpd #772
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This adds a lexer to parse ISC's dhcpd.conf, https://www.isc.org/dhcp/, this is EOL, but distributions still carry it. It has the keywords that I could find and takes some liberty with LiteralNumber* tokens to return IP, network and MAC addresses. It may be possible to make this somewhat smaller, but haven't pushed for that yet. Signed-off-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Miek Gieben <miek@miek.nl>
Nice, thanks! |
@alecthomas @miekg this PR added |
gandarez
added a commit
to wakatime/wakatime-cli
that referenced
this pull request
Aug 18, 2023
Seems reasonable to me. |
gandarez
added a commit
to wakatime/wakatime-cli
that referenced
this pull request
Aug 24, 2023
gandarez
added a commit
to wakatime/wakatime-cli
that referenced
this pull request
Aug 27, 2023
gandarez
added a commit
to wakatime/wakatime-cli
that referenced
this pull request
Aug 29, 2023
Migrate dependency detection to Chroma v2 Add doctype package Add xml package Fix language package for Chroma v2 Add ColdfusionHTML lexer Add Crontab lexer Add Delphi lexer Add Gosu lexer Add Lasso lexer Add Less lexer Add Liquid lexer Add Mustache lexer Add Pawn lexer Add SketchDrawing lexer Add Slim lexer Add XAML lexer Add XSLT lexer Fix priority for ApacheConf lexer as it conflicts with ISCdhcpd alecthomas/chroma#772 (comment) Add Pug lexer Add SublimeTextConfig lexer Add SWIG lexer Do not allow re-register a lexer Test languages already registered in Chroma Add Marko lexer Add RPMSpec lexer Add Objective-J lexer port custom lexers from forked chroma fix all but one todo implement name method for lexers add line breaks fix linter typo Add missing lexer tests A..H add tests more tests add lexers g-o lexer tests for lexers a-f fix linter fix get lexer by name typos Fix tests Fix tests Update go mod to temporary use Chroma fork Fix linting remove reference to Chroma v1 Fix dependencies parser Remove unnecessary lint comments Fix Forth analyse text on Windows Register all custom lexers Replace fixed strings with language constants Move lexers to lexer package Use languages from heartbeat package
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a lexer to parse ISC's dhcpd.conf, https://www.isc.org/dhcp/, this is EOL, but distributions still carry it.
It has the keywords that I could find and takes some liberty with LiteralNumber* tokens to return IP, network and MAC addresses.
It may be possible to make this somewhat smaller, but haven't pushed for that yet.