Skip to content

Commit 89ca35f

Browse files
committed
Update property key, value length limits per spec change
Increase the minimum key and value lengths to pass the tests added in <editorconfig/editorconfig-core-test#41>.
1 parent 8cdbbaf commit 89ca35f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

autoload/editorconfig_core/ini.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ let s:SECTCRE = '\v^\s*\[(%([^\\#;]|\\.)+)\]'
4949
let s:OPTCRE = '\v\s*([^:=[:space:]][^:=]*)\s*([:=])\s*(.*)$'
5050

5151
let s:MAX_SECTION_NAME = 4096
52-
let s:MAX_PROPERTY_NAME = 50
53-
let s:MAX_PROPERTY_VALUE = 255
52+
let s:MAX_PROPERTY_NAME = 1024
53+
let s:MAX_PROPERTY_VALUE = 4096
5454

5555
lockvar s:SECTCRE s:OPTCRE s:MAX_SECTION_NAME s:MAX_PROPERTY_NAME s:MAX_PROPERTY_VALUE
5656

0 commit comments

Comments
 (0)