This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 209582 - Comments in asm file broke editor coloring
Summary: Comments in asm file broke editor coloring
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: ASM (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-14 15:24 UTC by Alexander Simon
Modified: 2014-11-25 11:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Picture with bad coloring. (30.45 KB, image/png)
2012-04-20 15:29 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2012-03-14 15:24:48 UTC
Comments with # and ' broke rest editor coloring. For example, insert following comment in asm file:

// This section (protected by #if 1) defines __floatdidf and __floatdisf,
// used by gcc's runtime to convert long longs into doubles and floats.
// Since we don't use gcc's runtime, we define these symbols because gcc
// compiles its 64-bit conversions to use these two functions.
Comment 1 Egor Ushakov 2012-04-20 11:13:42 UTC
please provide the full sample text, I tried it with:
// This section (protected by #if 1) defines __floatdidf and __floatdisf,
// used by gcc's runtime to convert long longs into doubles and floats.
// Since we don't use gcc's runtime, we define these symbols because gcc
// compiles its 64-bit conversions to use these two functions.

section .text
global _start, write
write:
        mov     %al, 1 ; write syscall
        syscall
        ret
_start:
        mov     %rax, 0x0a68732f6e69622f ; /bin/sh\n
        push    %rax
        xor     %rax, %rax
        mov     %rsi, %rsp
        mov     %rdi, 1
        mov     %rdx, 8
        call    write

// This section (protected by #if 1) defines __floatdidf and __floatdisf,
// used by gcc's runtime to convert long longs into doubles and floats.
// Since we don't use gcc's runtime, we define these symbols because gcc
// compiles its 64-bit conversions to use these two functions.
 
exit: ; just exit not a function
        xor     %rax, %rax
        mov     %rax, 60
        syscall

and it works fine
Comment 2 Alexander Simon 2012-04-20 15:29:16 UTC
Created attachment 118575 [details]
Picture with bad coloring.

I cannot share private code.
I sent location of code example directly.
Comment 3 Egor Ushakov 2012-04-25 09:52:40 UTC
true, if the file contains several assemblers together with preprocessor we're unable to highlight it correctly, probably we need to cooperate with c/c++ highlighter
Comment 4 henk89 2014-11-21 13:25:41 UTC
Please provide a sample to reproduce the issue.
Comment 5 henk89 2014-11-25 11:29:52 UTC
Not reproducible