vendor/assets/javascripts/codemirror/modes/xquery.js in codemirror-rails-2.36 vs vendor/assets/javascripts/codemirror/modes/xquery.js in codemirror-rails-3.00
- old
+ new
@@ -18,11 +18,11 @@
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-CodeMirror.defineMode("xquery", function(config, parserConfig) {
+CodeMirror.defineMode("xquery", function() {
// The keywords object is set to the result of this self executing
// function. Each keyword is a property of the keywords object whose
// value is {type: atype, style: astyle}
var keywords = function(){
@@ -399,11 +399,10 @@
// functions to test the current context of the state
function isInXmlBlock(state) { return isIn(state, "tag"); }
function isInXmlAttributeBlock(state) { return isIn(state, "attribute"); }
- function isInCodeBlock(state) { return isIn(state, "codeblock"); }
function isInXmlConstructor(state) { return isIn(state, "xmlconstructor"); }
function isInString(state) { return isIn(state, "string"); }
function isEQNameAhead(stream) {
// assume we've already eaten a quote (")
@@ -422,17 +421,17 @@
function pushStateStack(state, newState) {
state.stack.push(newState);
}
function popStateStack(state) {
- var popped = state.stack.pop();
+ state.stack.pop();
var reinstateTokenize = state.stack.length && state.stack[state.stack.length-1].tokenize;
state.tokenize = reinstateTokenize || tokenBase;
}
// the interface for the mode API
return {
- startState: function(basecolumn) {
+ startState: function() {
return {
tokenize: tokenBase,
cc: [],
stack: []
};