Fix whitespace in `pragma protect version` (#4914)
This commit is contained in:
parent
4b9532fe24
commit
e00e4d4245
|
|
@ -160,7 +160,7 @@ bom [\357\273\277]
|
||||||
BEGIN(ENCBASE64);
|
BEGIN(ENCBASE64);
|
||||||
return VP_TEXT; }
|
return VP_TEXT; }
|
||||||
<PRAGMAPRT>("begin_protected"|"end_protected"|"end")[\n\r] { FL_FWDC; linenoInc(); BEGIN(INITIAL); return VP_TEXT; }
|
<PRAGMAPRT>("begin_protected"|"end_protected"|"end")[\n\r] { FL_FWDC; linenoInc(); BEGIN(INITIAL); return VP_TEXT; }
|
||||||
<PRAGMAPRT>"version="[^\n\r]*[\n\r] {
|
<PRAGMAPRT>"version"{wsn}*={wsn}*[^\n\r]*[\n\r] {
|
||||||
FL_FWDC;
|
FL_FWDC;
|
||||||
linenoInc();
|
linenoInc();
|
||||||
BEGIN(INITIAL);
|
BEGIN(INITIAL);
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,11 @@
|
||||||
module t_lint_pragma_protected;
|
module t_lint_pragma_protected;
|
||||||
|
|
||||||
`pragma protect begin_protected
|
`pragma protect begin_protected
|
||||||
|
// Any amount of whitespace should be ok
|
||||||
`pragma protect version=1
|
`pragma protect version=1
|
||||||
|
`pragma protect version = 1
|
||||||
|
`pragma protect version= 1
|
||||||
|
`pragma protect version =1
|
||||||
`pragma protect encrypt_agent="XXXXX"
|
`pragma protect encrypt_agent="XXXXX"
|
||||||
`pragma protect encrypt_agent_info="YYYYY"
|
`pragma protect encrypt_agent_info="YYYYY"
|
||||||
`pragma protect data_method="AES128-CBC"
|
`pragma protect data_method="AES128-CBC"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue