remove old TODOs

main
Mike Fix 6 years ago
parent c25161550f
commit 008ba67eac

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save