Fix whitespace in pragma protect version (#4914)

This commit is contained in:
Paul Swirhun 2024-02-22 00:29:57 -08:00 committed by GitHub
parent 4b9532fe24
commit e00e4d4245
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -160,7 +160,7 @@ bom [\357\273\277]
BEGIN(ENCBASE64);
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;
linenoInc();
BEGIN(INITIAL);

View File

@ -9,7 +9,11 @@
module t_lint_pragma_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 encrypt_agent="XXXXX"
`pragma protect encrypt_agent_info="YYYYY"
`pragma protect data_method="AES128-CBC"