https://bugs.kde.org/show_bug.cgi?id=383848

--- Comment #2 from Till Schäfer <till2.schae...@uni-dortmund.de> ---
some more observations: 

settings -> Open/Save -> Modes & Filetypes
- I can see correctly specified file extensions "*.ps1;*.ps1m;*.ps1d". 
- I have noticed that the other entries contain extra mime-types for the
specific type (e.g. "application/x-python;text/x-python" for python) type or no
mime type (i.e., the empty string). PowerShell does contain the mimetype
"text/plain" instead. 
  -> replacing the mime type "text/plain" with the empty string "" fixes the
problem.

The mimetype and extension is somewhat ambiguous (as the mime type can declare
their own filename pattern (and thus extension)).
https://docs.kde.org/stable5/en/applications/katepart/highlight.html does not
clearly state how this two properties behave in combination. I guess this is
implemented as an AND and the author of the PowerShell file interpreted it as
an OR. 

=> Thus, the relation of this attributes should be clearly specified in
https://docs.kde.org/stable5/en/applications/katepart/highlight.html and the
mime-type should be set to empty in PowerShell.xml

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to