File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
* .py [cod ]
2
2
* .egg-info
3
+ .ropeproject
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class NginxParser(object):
24
24
block = Forward ()
25
25
26
26
block << Group (
27
- Group (key + Optional (space + location ))
27
+ Group (key + Optional (space + modifier ) + Optional ( space + location ))
28
28
+ left_bracket
29
29
+ Group (ZeroOrMore (Group (assignment ) | block ))
30
30
+ right_bracket )
Original file line number Diff line number Diff line change @@ -25,10 +25,12 @@ class TestNginxParser(unittest.TestCase):
25
25
}
26
26
}
27
27
28
- location ~ case_sensitive\.php$ {}
29
- location ~* case_insensitive\.php$ {}
30
- location = exact_match\.php$ {}
31
- location ^~ ignore_regex\.php$ {}
28
+ location ~ case_sensitive\.php$ {
29
+ hoge hoge;
30
+ }
31
+ location ~* case_insensitive\.php$ {}
32
+ location = exact_match\.php$ {}
33
+ location ^~ ignore_regex\.php$ {}
32
34
33
35
}'''
34
36
}
You can’t perform that action at this time.
0 commit comments