Update and clarify documentation on filetype detection patterns

This commit is contained in:
Dmytro Maluka
2024-03-24 02:07:58 +01:00
parent b2a428f1cd
commit 66a3839589
2 changed files with 32 additions and 4 deletions

View File

@@ -2,7 +2,8 @@
Here are micro's syntax files.
Each yaml file specifies how to detect the filetype based on file extension or given signature. The signature can be matched to all available lines of the file or to the value defined with the option `detectlimit` (to limit parse times) for a best "guess".
Each yaml file specifies how to detect the filetype based on file extension or header (first line of the line).
In addition, a signature can be provided to help resolving ambiguities when multiple matching filetypes are detected.
Then there are patterns and regions linked to highlight groups which tell micro how to highlight that filetype.
Making your own syntax files is very simple. I recommend you check the file after you are finished with the