File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Units/parser-iniconf.r/simple-pythonLoggingConfig.d Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ handler_hand01 input.conf /^[handler_hand01]$/;" section language:Iniconf
11
11
handlers input.conf /^[handlers]$/;" section language:Iniconf
12
12
handlers input.conf /^handlers=hand01$/;" key language:Iniconf section:logger_parser
13
13
handlers input.conf /^handlers=hand01$/;" key language:Iniconf section:logger_root
14
+ key-with-dashes input.conf /^key-with-dashes=value2$/;" key language:Iniconf section:section.with.dots
15
+ key.with.dots input.conf /^key.with.dots=value1$/;" key language:Iniconf section:section.with.dots
14
16
keys input.conf /^keys=form01$/;" key language:Iniconf section:formatters
15
17
keys input.conf /^keys=hand01$/;" key language:Iniconf section:handlers
16
18
keys input.conf /^keys=root,parser$/;" key language:Iniconf section:loggers
@@ -24,3 +26,4 @@ parser input.conf /^[logger_parser]$/;" loggerSection language:PythonLoggingConf
24
26
propagate input.conf /^propagate=1$/;" key language:Iniconf section:logger_parser
25
27
qualname input.conf /^qualname=compiler.parser$/;" key language:Iniconf section:logger_parser
26
28
root input.conf /^[logger_root]$/;" loggerSection language:PythonLoggingConfig
29
+ section.with.dots input.conf /^[section.with.dots]$/;" section language:Iniconf
Original file line number Diff line number Diff line change @@ -31,3 +31,7 @@ args=(sys.stdout,)
31
31
format=F1 %(asctime)s %(levelname)s %(message)s
32
32
datefmt=
33
33
class=logging.Formatter
34
+
35
+ [section.with.dots]
36
+ key.with.dots=value1
37
+ key-with-dashes=value2
Original file line number Diff line number Diff line change 35
35
static bool isIdentifier (int c )
36
36
{
37
37
/* allow whitespace within keys and sections */
38
- return (bool )(isalnum (c ) || isspace (c ) || c == '_' );
38
+ return (bool )(isalnum (c ) || isspace (c ) || c == '_' || c == '-' || c == '. ' );
39
39
}
40
40
41
41
static bool isValue (int c )
You can’t perform that action at this time.
0 commit comments