David Sheldrick
d77f5e9c3a
Fix cursor offset tracking ( #4397 )
...
* handle cusor position relative to comments correctly
* use more robust method of cursor offset tracking
* add support for cursorOffset with rangeStart/End
* add tests for cursorOffset
* use old JS syntax for node4
* add another cursor offset test case
* remove trailing whitespace in cursor tests
* fix null findNodeAtOffset handling
* remove dead code
* add more test cases
* use indexOf for node4
* revert comments.js
* add more comment tests
* change tests infra
* Fix AST_COMPARE
* move CURSOR to top level of file
* mutate result
* use es6 property shorthand
* simplify diff offset calculation
* put remaining test cases in individual files
2018-05-01 09:42:59 -03:00
Johann Hubert Sonntagbauer
3a99fe5d65
[playground] fix overflow in safari ( #4406 )
...
* [playground] fix overflow in safari
* options panel will not outgrow editors panel
* fix overflow in safari 10.1
* fix odd code mirror gutter placement during overflow
2018-05-01 09:41:25 -03:00
Johann Hubert Sonntagbauer
1e69119354
[playground Prevent overflow in Firefox ( #4394 )
2018-04-28 17:38:22 -03:00
Elias Meire
5b7ebb18ba
Fix: Always preserve frontmatter, remove dependency ( #4392 )
...
* Fix: Always preserve frontmatter, remove dependency
* Move correct test to correct filename
* Add test for malformed frontmatter, finetune regex
* Use other malformed test case
* Update yarn.lock
2018-04-28 08:53:30 -03:00
Nate Pendleton
91c701886d
fix(glimmer): preserve leading/trailing spaces in text nodes undernea… ( #4288 )
...
* fix(glimmer): preserve leading/trailing spaces in text nodes underneath attribute nodes when next to mustache statements.
* fix(glimmer): format printer-glimmer.js
* fix(glimmer): lint fix
* fix(glimmer): removed decomposition assignments to be compatible with Node 4
* fix(glimmer): Array.includes() -> indexOf() for Node 4
2018-04-27 14:20:10 -06:00
Huy Vo
2ad7576d3a
Remove newline in empty .md files ( #4388 )
...
* Remove newline in empty .md files
* Fix cannot read property 'type' of undefined bug
2018-04-27 15:01:14 +08:00
Lucas Duailibe
8015e417c0
Separate entry for web bundle ( #4386 )
2018-04-26 13:38:57 -03:00
Ika
9cc5d4f162
fix(json): jsonc is considered JSON instead of JSON5 ( #4374 )
...
* fix(json): jsonc in consider JSON instead of JSON5
* feat: add json5 id
2018-04-27 00:09:36 +08:00
Jed Fox
c37861d08b
Add a redirects file ( #4321 )
...
* Add a redirects file
* Remove non-working redirects
2018-04-26 11:41:52 -04:00
Evilebot Tnawi
2fe5263ff9
refactor: `printer-postcss` ( #4378 )
2018-04-26 13:53:52 +03:00
Ika
ff38aaff95
fix(javascript): correct escape for markdown in js ( #4381 )
...
* test: add tests
* fix(javascript): correct escape for markdown in js
* test: add trailing newline
2018-04-26 13:22:43 +03:00
Ika
b46a46b112
fix(playground): add missing `input` code sample for `copy markdown` ( #4382 )
2018-04-26 00:37:29 -03:00
Kostas Bariotis
9d5a7c7c66
Edit metrics as seen at NPM/GitHub network ( #4379 )
2018-04-26 10:54:45 +08:00
Lipis
37eea26acf
Make Travis green again ( #4380 )
2018-04-26 10:17:19 +08:00
Evilebot Tnawi
2a3c616787
refactor: remove unused `css-import` node ( #4375 )
2018-04-25 21:29:59 +03:00
Evilebot Tnawi
e5741552ed
feat: use `postcss-values-parser` for `@namespace` at rule ( #4373 )
2018-04-25 21:27:12 +03:00
Evilebot Tnawi
58a91cc570
feat: improve `@support` at-rule output ( #4372 )
2018-04-25 20:41:41 +03:00
Lucas Duailibe
67f1c4877e
Refactoring: better boundaries for different parts of the project ( #4364 )
2018-04-25 13:29:35 -03:00
Ika
289b98c125
feat(json): enforce StringLiteral-style property key ( #4371 )
...
* test: add tests
* feat(json): enforce StringLiteral-style property key
2018-04-26 00:00:07 +08:00
Ika
317f3a3c56
feat: split out JSON5 ( #4367 )
...
* feat: split out JSON5
* test: update snapshots
* test: update debug-check tests
* feat(playground): use JSON's code sample for JSON5
* fix: add missing trailing newline
2018-04-25 22:10:22 +08:00
Ika
6b2be99b53
docs(plugins): add parser.preprocess ( #4365 )
...
* docs(plugins): add parser.preprocess
* docs: fix linting
2018-04-25 00:41:39 +08:00
Ika
6a17474e37
feat(typescript): support generic JSX element ( #4268 )
...
* feat(typescript): support generic JSX element
* fix(playground): `buffer is not defined` in `--parser typescript`
* chore(deps): update typescript-eslint-parser
2018-04-24 08:45:31 -05:00
Ika
643e2a83d6
feat(typescript): support TaggedTemplateExpression typeParameters ( #4353 )
...
* test: add tests
* feat(typescript): support TaggedTemplateExpression typeParameters
* fix(playground): `buffer is not defined` in `--parser typescript`
* chore(deps): update typescript-eslint-parser
2018-04-24 08:45:06 -05:00
Lucas Duailibe
50101e98c6
Fix pragma detection/insertion for JSON ( #4333 )
2018-04-24 10:10:16 -03:00
Ika
586b55b326
docs(api): language.since is now optional ( #4363 )
2018-04-24 21:00:52 +08:00
Adam Pearce
09ac476a32
Nicer line wrapping for d3 ( #4285 )
...
* d3 counts as a constructor
* adds test
* Tweak wording
* docs: fix linting
* updates test
* no $ special case
* renames function
* shorter function name
* removes trailing white space
2018-04-24 06:54:45 -04:00
Vlad Korobov
80196b6553
Metric.ai users ( #4358 )
...
* Metric.ai logo added
* Metric.ai users data added
* style: remove extra trailing newline
2018-04-23 22:59:30 +08:00
Lucas Duailibe
3bc9b68cf6
Remove old playground files
2018-04-20 12:10:32 -03:00
Lucas Duailibe
091edee99c
New playground ( #3573 )
2018-04-20 12:08:05 -03:00
Lucas Duailibe
b611c62dea
last minute fixes
2018-04-20 11:50:36 -03:00
Lucas Duailibe
1f320a6031
range support
2018-04-20 11:30:47 -03:00
Lucas Duailibe
57cdf314d5
rename
2018-04-20 09:54:15 -03:00
Lucas Duailibe
c794de0e9f
start overlay support
2018-04-19 19:23:38 -03:00
Mike Grip
4c464133ac
feat: adding plugin ability for isBlockComment ( #4347 )
...
* adding plugin ability for isBlockComment
* refactor to remove private util def
* remove old fn def
2018-04-19 13:31:08 -07:00
Lucas Duailibe
9ca95011c0
refactor panels.js
2018-04-19 16:30:35 -03:00
Lucas Duailibe
961d25560f
placeholder + refactors
2018-04-19 14:31:35 -03:00
Lucas Duailibe
a7a65aceb2
fix empty hash
2018-04-19 13:56:10 -03:00
Lucas Duailibe
f3cf50515d
fix node 4 problem
2018-04-19 13:55:58 -03:00
Brian Ng
7cb6790ce0
Merge pull request #4326 from existentialism/flow70
...
Bump flow to 0.70
2018-04-18 17:04:14 -05:00
Aakansha Doshi
7f20ffc7f5
Allow trailing comma in scss list and maps ( #4317 )
...
* Allow trailing comma in scss list and maps
* fix #4076
* triple equalto
* newline
* linting
* review fixes
* print trailing comma only when options.tralingComma is not none
* Add nested maps and lists
* add isSCSS() check
* linting
* Add utils for isSCSS() in language-css
* lint
2018-04-18 17:40:01 -03:00
Lucas Duailibe
a485da206c
run prettier
2018-04-17 19:40:02 -03:00
Lucas Duailibe
1ed3865cb6
lint fixes
2018-04-17 18:09:36 -03:00
Lucas Duailibe
971da5f8c1
lint fixes
2018-04-17 17:29:44 -03:00
Lucas Duailibe
fcb9cb0f69
revert a css change
2018-04-17 17:02:26 -03:00
Lucas Duailibe
0ca6ff691e
simplify some stuff
2018-04-17 16:42:03 -03:00
Lucas Duailibe
2172ed95bf
refactor & fixes
2018-04-17 16:09:44 -03:00
Lucas Duailibe
fc52887e94
optimize panel updates
2018-04-17 14:50:53 -03:00
Lucas Duailibe
a398ec31b8
cached dependencies
2018-04-17 14:13:23 -03:00
Lucas Duailibe
33c00ca111
handling PR versions
2018-04-17 13:53:20 -03:00
Lucas Duailibe
1f7e48aa46
remove dead code
2018-04-17 13:42:05 -03:00