You've already forked code_examples_server
mirror of
https://github.com/AdaCore/code_examples_server.git
synced 2026-02-12 12:45:18 -08:00
Adjust regexp to know about underscores in identifiers
Fixes an issue where mains with underscores weren't considered as mains.
This commit is contained in:
@@ -40,7 +40,7 @@ pragma Warnings (Off, "subprogram * has no effect");
|
||||
pragma Warnings (Off, "file name does not match");
|
||||
"""
|
||||
|
||||
procedure_re = re.compile("^procedure +[A-Za-z][a-zA-Z0-9]* +is", re.MULTILINE)
|
||||
procedure_re = re.compile("^procedure +[A-Za-z][_a-zA-Z0-9]* +is", re.MULTILINE)
|
||||
|
||||
|
||||
def run(command):
|
||||
|
||||
Reference in New Issue
Block a user