remove old TODOs

main
Mike Fix 6 years ago
parent c25161550f
commit 008ba67eac

@ -3,7 +3,8 @@ module.exports = {
env: {
browser: true,
es6: true,
node: true
node: true,
mocha: true
},
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:jsx-a11y/recommended'],
parserOptions: {

@ -1,4 +1,3 @@
/* eslint-env mocha */
/* global cy */
import { editorVisible } from '../support'

@ -1,4 +1,3 @@
/* eslint-env mocha */
/* global cy */
import { editorVisible } from '../support'
describe('Basic', () => {

@ -1,4 +1,3 @@
/* eslint-env mocha */
/* global cy Cypress */
import { editorVisible } from '../support'
describe('Gist', () => {

@ -1,4 +1,3 @@
/* eslint-env mocha */
/* global cy */
import { editorVisible } from '../support'

@ -1,11 +1,10 @@
/* eslint-disable */
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Apache mode by gloony
const CodeMirror = require('codemirror')
CodeMirror.defineMode('apache', function(config) {
CodeMirror.defineMode('apache', function(/* config */) {
return {
token: function(stream, state) {
var sol = stream.sol() || state.afterSection
@ -28,7 +27,9 @@ CodeMirror.defineMode('apache', function(config) {
}
if (sol) {
while (stream.eatSpace()) {}
while (stream.eatSpace()) {
/* pass */
}
}
var ch = stream.next()

@ -1,3 +1,2 @@
/* eslint-disable */
// Require Codemirror elixir mode from npm modules and register it here
import 'codemirror-mode-elixir'

@ -1,2 +1 @@
/* eslint-disable */
import 'codemirror-graphql/mode'

@ -1,4 +1,3 @@
/* eslint-disable */
const CodeMirror = require('codemirror')
CodeMirror.defineMode('nimrod', function(conf, parserConf) {
@ -375,10 +374,10 @@ CodeMirror.defineMode('nimrod', function(conf, parserConf) {
}
// Handle Number Literals
if (stream.match(/^[0-9\.]/, false)) {
if (stream.match(/^[0-9.]/, false)) {
var floatLiteral = false
// Floats
if (stream.match(/^\d*\.\d+(e[\+\-]?\d+)?/i)) {
if (stream.match(/^\d*\.\d+(e[+-]?\d+)?/i)) {
floatLiteral = true
}
if (stream.match(/^\d+\.\d*/)) {
@ -407,10 +406,9 @@ CodeMirror.defineMode('nimrod', function(conf, parserConf) {
intLiteral = true
}
// Decimal
if (stream.match(/^[1-9]\d*(e[\+\-]?\d+)?/)) {
if (stream.match(/^[1-9]\d*(e[+-]?\d+)?/)) {
// Decimal literals may be "imaginary"
stream.eat(/J/i)
// TODO - Can you have imaginary longs?
intLiteral = true
}
// Zero by itself with no other piece of number.
@ -572,7 +570,7 @@ CodeMirror.defineMode('nimrod', function(conf, parserConf) {
if (delimiter_index !== -1) {
indent(stream, state, '])}'.slice(delimiter_index, delimiter_index + 1))
} else if (stream.eol() && current.match(/\=|\:|import|include|type|const|var|let/)) {
} else if (stream.eol() && current.match(/=|:|import|include|type|const|var|let/)) {
indent(stream, state)
}

Loading…
Cancel
Save