Skip to content
Snippets Groups Projects
Commit e6224af1 authored by Campbell Barton's avatar Campbell Barton
Browse files

c_sort_blocks: correct examples in comments

parent cc8fcc22
No related branches found
No related tags found
No related merge requests found
...@@ -46,13 +46,13 @@ def sort_struct_lists(fn, data_src): ...@@ -46,13 +46,13 @@ def sort_struct_lists(fn, data_src):
import re import re
# eg: # eg:
# extern StructRNA; # struct Foo;
re_match_struct = re.compile(r"struct\s+[A-Za-z_][A-Za-z_0-9]*\s*;") re_match_struct = re.compile(r"struct\s+[A-Za-z_][A-Za-z_0-9]*\s*;")
# eg: # eg:
# extern StructRNA RNA_LightProbe; # struct Foo Bar;
re_match_struct_type = re.compile(r"struct\s+[A-Za-z_][A-Za-z_0-9]*\s+[A-Za-z_][A-Za-z_0-9]*\s*;") re_match_struct_type = re.compile(r"struct\s+[A-Za-z_][A-Za-z_0-9]*\s+[A-Za-z_][A-Za-z_0-9]*\s*;")
# typedef struct BMBVHTree BMBVHTree; # typedef struct Foo Bar;
re_match_typedef_struct_type = re.compile(r"typedef\s+struct\s+[A-Za-z_][A-Za-z_0-9]*\s+[A-Za-z_][A-Za-z_0-9]*\s*;") re_match_typedef_struct_type = re.compile(r"typedef\s+struct\s+[A-Za-z_][A-Za-z_0-9]*\s+[A-Za-z_][A-Za-z_0-9]*\s*;")
re_match_enum = re.compile(r"enum\s+[A-Za-z_][A-Za-z_0-9]*\s*;") re_match_enum = re.compile(r"enum\s+[A-Za-z_][A-Za-z_0-9]*\s*;")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment