Merged
Conversation
* Added Smithy Lexer * Added Smithy Lexer auhtor * Documented Smithy as a supported language * Added Smithy test file and output
Anteru
requested changes
Aug 5, 2021
pygments/lexers/smithy.py
Outdated
Comment on lines
+38
to
+41
| (r'^(use|byte|short|integer|long|float|' | ||
| r'document|double|bigInteger|bigDecimal|boolean|blob|string|timestamp)(\s+' + identifier + r')\b', | ||
| bygroups(Keyword.Declaration, Name.Class)), | ||
| (r'^(apply|list|map|set|structure|union|resource|operation|service|trait)(\s+' + identifier + r')', |
Collaborator
There was a problem hiding this comment.
We have a words() function to efficiently match lists of words, can you please change those two to use that?
* Added Standard file heading with copyright and license * Used `words` method for optimization, instead of bare regex * Specified whitespace punctuation in root * Updated aliases to only contain lowercase names to pass `test_basic_api` tests * Updated regexes lightly to fit regexlint rules (removing duplicate characters in group `-`) * Fixed regexes with errors in regexlint rules (Escaping brackets, gaps in capture groups)
Collaborator
|
Thanks for the timely updates! |
* Ran mapping to update after changing aliases in previous commit
Contributor
Author
|
Forgot to re-run |
Contributor
Author
|
Not sure why
Error: Seems like a randomly slow test event? |
Collaborator
|
Yes, that's a slow test failing once in a while. Don't worry :) |
Collaborator
|
Merged, thanks for your contribution! |
Closed
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.