When opening a file, CotEditor detects the document type and applies the corresponding syntax style automatically.
The File Mapping definitions in each syntax style are used for this detection.
CotEditor detects the corresponding syntax style in the following order:
#! or the next term to the path if the path targets env.#!/usr/bin/perl → Perl (interpreter: perl)#!/usr/bin/env python3 → Python (interpreter: python3)<?xml version="1.0" encoding="utf-8"?> → XMLWhen there are multiple syntax styles in the same level like the filename extension level or the filename level, custom styles are prioritized over the bundled styles. And yet, if there are multiple corresponding styles, the first found style will be applied automatically.
There are no conflicts among the bundled syntax styles. However, if you added custom styles or modified the bundled styles, the file mapping can conflict. You can see the existence of mapping conflicts from the Show File Mapping Conflict command in the Format pane in the Preferences. If the menu item is gray-out, it means: there is no conflict.
You can just leave the file mapping conflicts as long as you can open files with your expected syntax style. There is no side issue.