#####################################################
#  Highlight Languages Test Suite                   #
#  https://gitlab.com/tajmone/highlight-test-suite  #
#####################################################

; EditoConfig settings to enforce consistent code styles:
;   https://editorconfig.org

; For validating and fixing files against these settings:
;   https://www.npmjs.com/package/eclint

root = true

# ===================
# REPOSITORY SETTINGS
# ===================
# These settings apply to the whole project.

## Configurations
#################
[.{git*,editorconfig,*.yml}]
end_of_line = lf
indent_style = space
indent_size = unset
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true


## Highlight (Lua) Scripts
##########################
[*.{lua,lang,theme}]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true


## Shell Scripts
################
[*.sh]
end_of_line = lf
indent_style = tab
indent_size = unset
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# ====================
# TEST-LANGUAGES FILES
# ====================
# When a new language is added to the tests, all its associated files extensions
# should be added to this section to ensure correct editor/IDE configurations
# and EditorConfig validation.


## Hugo Interactive Fiction
###########################
; Hugo sources are strictly in ISO-8859-1 (aka Latin1).
;   https://www.generalcoffee.com/hugo

[hugo/*.{hug,h,g}]
; charset = latin1  # BUGGY: reports acute accent as invalid char.
;                            (see: github.com/jedmao/eclint#169)
indent_style = space
indent_size = unset
end_of_line = unset
trim_trailing_whitespace = true
insert_final_newline = true

# EOF #
