[vim bindings] Check if cm.save() is available before saving
cm.save() might not exist if CodeMirror is not created from a textarea. This adds an additional check to prevent TypeErrors.
[real-world uses] Fix the link to Gerrit Code Review
The code.google.com link is deprecated. Also add that CodeMirror is being used as Gerrit's inline editor.
corrected angle bracket matching in operators (fixes block comments) corrected digit matching regex corrected spelling of 'identifier' in grammar dictionary notCharacterOrDash explicitly includes lowercase characters improved variable matching splatted variables now match bare '$' and '@' are errors, not variables moved single-quoted string processing into tokenSingleQuoteString incomplete strings are errors now empty strings are no longer errors added support for here-string interpolation with nesting support added highlighting for splatted vars removed arbitrary stream advancement prior to default error in tokenBase enabled folding braces
[powershell mode] Prepare for merge into CodeMirror repository
Added tests and fixed some issues uncovered by testing.
[vim bindings] Remove dead code and initialize a property
The Error after the while(true) loop is not reachable and should be removed. The "this.iterator" property should be given an initial value of 0. This fixes two warnings reported by Closure Compiler.
[properties mode] Use empty block instead of empty statement
This eliminates a warning from Closure Compiler.
[dtd mode] Fix code that lacks side-effects
The 6 "n"s are reported as suspicious code by Closure Compiler. They can just be empty statements instead.
5.13.4 was a trivial release restoring a LICENSE file.
[mode/meta] Recognize Bazel, Buck and Pants build files as Python in …
…mode/meta.js BUCK, BUILD, *.BUILD and *.bzl files are build files for the three build systems mentioned, and they are all valid Python files.
[gfm mode] Fix fenced code block mode switching for objective-c
There were two issues: 1. Github flavored markdown calls Objective C `objective-c` 2. The gfm.js mode didn't include `-` in its fenced code block regex Additionally, test/index.html did not import the mode/meta.js file, which prevented mode lookup by name from working in unit tests.
Update valid string prefix for Python 3.
`u` prefix are valid (again) since 3.3, and `f` prefix are now allowed starting at 3.6 (which is not released yet though).
[show-hint addon] Allow hinting functions to return Promises
Even if we don't use promise internally, check for the existence of `.then` attributes on the return results of a hinting function, and if so assume it is a promise. Internally also convert all hinters to use the asynchronous interface for consistency and simplification of code paths. Closes #3971
[Python] distinguish decorator at beginning of line from __matmul__
@ as __matmul__ operator only on Python 3, Add tests for Python mode for this use case. Closes #3957