Skip to content

Commit

Permalink
Update property key, value length limits per spec change
Browse files Browse the repository at this point in the history
Increase the minimum key and value lengths to pass the tests added in
<editorconfig/editorconfig-core-test#41>.
  • Loading branch information
cxw42 committed Oct 31, 2022
1 parent 8cdbbaf commit 89ca35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/editorconfig_core/ini.vim
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ let s:SECTCRE = '\v^\s*\[(%([^\\#;]|\\.)+)\]'
let s:OPTCRE = '\v\s*([^:=[:space:]][^:=]*)\s*([:=])\s*(.*)$'

let s:MAX_SECTION_NAME = 4096
let s:MAX_PROPERTY_NAME = 50
let s:MAX_PROPERTY_VALUE = 255
let s:MAX_PROPERTY_NAME = 1024
let s:MAX_PROPERTY_VALUE = 4096

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

Expand Down

0 comments on commit 89ca35f

Please sign in to comment.