8000 Improper syntax highlighting for JS · Issue #16 · jecelyin/920-Text-Editor-old · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Improper syntax highlighting for JS #16
Open
@dead-claudia

Description

@dead-claudia

Code samples like the following are incorrectly highlighted:

function isPositiveZero(x) {
return 1 / x === 1 / 0;
}

The return statement is usually highlighted as a RegExp literal, with the triple equals highlighted, instead of two division statements. Similar highlighting issues are apparent with statements like these:

// both zeros are highlighted, neither should be
1 / 0;
0 / 1;

// highlights the x's and colon
a = x > 5 ? 5 / x : x / 5

// highlights all the way to the end of the file or until another '/' is found
a /= 5;

Android versions: 4.1.2 (stock phone), 4.4.2 (stock phone and CM11 nightly on tablet)

Tested on latest Google Play release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0