Skip to content

Commit

Permalink
Set default toml file indent and tab width to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lifenjoiner authored and zufuliu committed Jan 19, 2024
1 parent 3e71802 commit 7a72f1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/EditLexers/stlTOML.c
Expand Up @@ -29,8 +29,10 @@ static EDITSTYLE Styles_TOML[] = {
EDITLEXER lexTOML = {
SCLEX_TOML, NP2LEX_TOML,
//Settings++Autogenerated -- start of section automatically generated
LexerAttr_TabAsSpaces |
LexerAttr_NoGlobalTabSettings |
LexerAttr_NoBlockComment,
TAB_WIDTH_4, INDENT_WIDTH_4,
TAB_WIDTH_2, INDENT_WIDTH_2,
(1 << 0) | (1 << 1), // table, comment
0,
'\\', SCE_TOML_ESCAPECHAR, 0,
Expand Down
1 change: 1 addition & 0 deletions tools/LexerConfig.py
Expand Up @@ -992,6 +992,7 @@ class KeywordAttr(IntFlag):
'SCE_TEXINFO_TITLE', 'SCE_TEXINFO_CHAPTER', 'SCE_TEXINFO_SECTION', 'SCE_TEXINFO_SECTION1', 'SCE_TEXINFO_SECTION2'],
},
'NP2LEX_TOML': {
'tab_settings': TabSettings_Space2,
'line_comment_string': '#',
'comment_style_marker': 'SCE_TOML_COMMENT',
'default_fold_level': ['table', 'comment'],
Expand Down

0 comments on commit 7a72f1f

Please sign in to comment.