uBlock/src/lib
Raymond Hill e44a568278
Add CoreMirror's code-folding ability to list editor/viewer
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1134

CodeMirror's code folding reference:
- https://codemirror.net/doc/manual.html#addon_foldcode

This commit adds support for code-folding to the filter
list editor/viewer.

The following blocks of code are foldable by clicking the
corresponding marker in the gutter:

- !#if/#endif blocks
- !#include blocks

Addtionally, the following changes:

- The `!#include` line is now preserved when importing a
  sublist
- The `!#if` directives will be syntax-colored according
  to whether they evaluate to true or false on the current
  platform
- Double-clicking on a foldable line in the gutter will
  select the content of the foldable block
- Minor visual improvement to matching brackets
2020-07-10 08:01:39 -04:00
..
codemirror Add CoreMirror's code-folding ability to list editor/viewer 2020-07-10 08:01:39 -04:00
diff Fix bad alignment in comments 2018-12-22 12:26:50 -05:00
lz4 Fix Promise chain of WASM module load operations 2019-02-01 08:20:43 -05:00
publicsuffixlist Fix page count computation in publicSuffixList.enableWASM() 2019-04-25 19:40:07 -04:00
punycode.js Update punycode.js 2015-04-16 10:34:03 +02:00