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

            Bug ID: 360081
           Summary: Attempting to parse text/plain files as C or C++
           Product: kdevelop
           Version: 4.90.91
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: francis.he...@yahoo.co.uk

(Reported incorrectly by me before as
https://bugs.kde.org/show_bug.cgi?id=347449, it's actually the C++ parser doing
this).

"NewGRF Meta-Language" files have extension '.nml' and mimetype 'text/plain',
and have a superficially C-like syntax.
'.pynml' files are similar.

KDevelop 4.90.91 attempts to parse them as C++ files, and puts error highlights
on almost every line. This makes them quite irritating to read.

NML, parsed as C(++?):
https://dev.openttdcoop.org/projects/nml/repository/raw/examples/road_vehicle/example_road_vehicle.nml
PyNML, parsed as C++:
https://dev.openttdcoop.org/projects/road-hog/repository/raw/src/templates/road_vehicle_properties.pynml

Reproducible: Always

Steps to Reproduce:
1. Open NML or PyNML file.


Actual Results:  
File and problems view filled with errors and warnings.

Expected Results:  
File not parsed, because it's not C or C++.

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

Reply via email to