Skip to content

Commit

Permalink
Merge branch 'mr/pmderodat/static-expr' into 'master'
Browse files Browse the repository at this point in the history
ada/tokens.lkt: split a pattern to fit 80 columns

See merge request eng/libadalang/libadalang!1881
  • Loading branch information
pmderodat committed Dec 17, 2024
2 parents 53c458d + 047653a commit 2cdbabb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ada/tokens.lkt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ lexer ada_lexer {
# TODO: handle Unicode properties in Langkit and switch back to
# \p{ID_Start} and \p{ID_Continue}.
val identifier =
p"[\\$_]?(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|{bracket_char})(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\p{Nd}|\\p{Mn}|\\p{Mc}|_|{bracket_char})*"
p"[\\$_]?"
& p"(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|{bracket_char})"
& p"(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\p{Nd}|\\p{Mn}"
& p"|\\p{Mc}|_|{bracket_char})*"


@unparsing_spacing(with=alphanumericals)
Expand Down

0 comments on commit 2cdbabb

Please sign in to comment.