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

            Bug ID: 439835
           Summary: VHDL text highlighting problem after "abs" and "not"
                    operator overload
           Product: kate
           Version: 19.12.3
          Platform: Mint (Ubuntu based)
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: vp.accou...@protonmail.com
  Target Milestone: ---

SUMMARY
When a vhdl package defines an overload of trxtual operators such as "abs"
"not" and several others, the text highlighting of the file becomes corrupted
and all following text is highlighted with the color assigned to "Vector" style

STEPS TO REPRODUCE
1. create a vhdl file with .vhdl extension, such as my_file.vhdl
2. copy and paste the following example package declaration:

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.NUMERIC_STD.all;
use IEEE.MATH_REAL.all;

package kate_bug_test_pkg is

        function my_func_1(x: signed) return signed;
        function my_func_2(x: signed) return signed;
        function my_func_3(x: signed) return signed;

        function "abs" (x: signed) return signed;
        function "not" (x: signed) return signed;

        function my_func_4(x: signed) return signed;
        function my_func_5(x: signed) return signed;
        function my_func_6(x: signed) return signed;

end kate_bug_test_pkg;

3. Save the file

OBSERVED RESULT

after the line where "abs" is declared everything is highlighted as Vector
style and not in the proper colors as before the "abs" declaration

EXPECTED RESULT

The highlighting should be consistent throughout the file

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Linux Mint 20.2 Cinnamon

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

Reply via email to