Wrong syntax highlight in Scratchpad

NEW
Unassigned

Status

P3
normal
2 years ago
6 months ago

People

(Reporter: oonuma.ry0uyu, Unassigned)

Tracking

47 Branch

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
Created attachment 8773845 [details]
cap (2).PNG

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Build ID: 20160623154057

Steps to reproduce:

I write javascript

```
function justaminute([aa=100,ba=200,ca=300]=[114514,810,42]){
  return [aa,ba,ca]
}

justaminute(["foo","bar","baz"])
```



Actual results:


i find a wrong syntax highlight.

hire is screenshot.


Expected results:

showed true syntax highlight.
(Reporter)

Comment 1

2 years ago
and I confirmed firefox 49 developer edition that configured `devtools.theme = dark`(default)

Updated

2 years ago
Component: Untriaged → Developer Tools: Scratchpad

Updated

2 years ago
Summary: wrong scratch pad syntax highlight → Wrong syntax highlight in Scratchpad
Confirmed, this is an issue with the source editor component. 
You can see the same problem if we load a script containing the code from the summary in the Debugger.

Scratchpad triage. Filter on TRIAGE-JD201705
Status: UNCONFIRMED → NEW
Component: Developer Tools: Scratchpad → Developer Tools: Source Editor
Ever confirmed: true
Priority: -- → P3

Updated

6 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.