10000 Highlight for loops, WITH NAME, token overhaul by bollwyvl · Pull Request #1 · gtri/irobotframework · GitHub
[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight for loops, WITH NAME, token overhaul #1

Open
wants to merge 59 commits into
base: master
Choose a base branch
from

Conversation

bollwyvl
Copy link
Contributor

It had been a while since I had done a thorough reading of the guide and test suite to catch more corner cases for highlighting. The most egregious oversight was for loops, which I even use in the test suite!

screenshot from 2019-01-24 07-52-21

This adds:

  • FOR/END and :FOR loops (old and new style)
    • IN RANGE and friends
  • tabs (they're actually pretty good with the right tab width, but still wouldn't recommend)
  • Library WITH NAME
  • generally shifted token scheme:
    • variable-2 for variables
    • atom for language constructs (FOR, etc)
    • meta for settings

I'd like to add some way to test these things, e.g. the google-modes tests, but really would like hypothesis in the loop... so this might have to wait for another ticket, and just do more manual testing (THE IRONY).

datakurre added a commit to robots-from-jupyter/robotkernel that referenced this pull request Jan 29, 2019
@bollwyvl
8000 Copy link
Contributor Author

Undertook a substantial effort to put some rigor behind the syntax highlighting: now have validated against the RFUG. Certainly better off now :)

datakurre added a commit to robots-from-jupyter/robotkernel that referenced this pull request Mar 5, 2019
@nrbgt
Copy link
Collaborator
nrbgt commented Apr 8, 2019

nrbgt pushed a commit to nrbgt/irobotframework that referenced this pull request May 30, 2019
* gtri#2: azure pipelines, more formatting, etc

* Set up CI with Azure Pipelines

* gtri#2: try node 10 on windows

* gtri#2: install kernels, return rc from run

* gtri#2: some more fixes for windows, chrome

* gtri#2: utf-8 all the things

* gtri#2: try updating conda on windows

* gtri#2: apparently have a local PR, so can just test before actual PR

* gtri#2: force re-install of pyzmq on windows

* gtri#2: only do zmq stuff in windows

* gtri#2: try defaults first

* gtri#2: try pip for zmq on windows

* gtri#2: more chromedriver shenanigans, fix conda invocation

* gtri#2: try more conda and completion stuff

* gtri#2: more conda stuff

* gtri#2: force jupyter_server

* gtri#2: give up on linting on windows

* gtri#2: normalize some browser stuff

* gtri#2: linting

* gtri#2: keep tightening up scripts, etc

* gtri#2: fix more scripts

* gtri#2: in, not ==

* gtri#2: back to defaults for windows

* gtri#2: bring back the zmq hack

* gtri#2: add win envs

* move bootstrap

* gtri#2: more windows

* gtri#2: win test env extends test

* gtri#2: skip more win

* typo

* longer timeout

* gtri#2: on empty test, test everything, but fail on any

* add fast fail -x to full test

* gtri#2: combine tests and combine

* gtri#2: normalize more things for windows

* oh, windows npm

* more verbose output

* gtri#2: clean up more build stuff

* just use jlpm

* more win stuff

* try moving packages

* no src in packages

* peering

* errant output

* linting

* get more specific with tsc call

* more work on shutdown

* further simplify js stuff for win

* more error weirdness on windows

* try more tsconfig tricks

* move tsconfig back up

* lint first

* more un-nesting

* lint first

* invoking scripts

* wheeling

* build once

* install once

* naming

* move chromedriver import

* don't run unit tests in build

* combine needs nbformat

* publish naming

* naming, some conditions

* try cobertura

* lint actual src

* gah, build, not b

* enter the matrix

* update test outputs for py version

* doesn't like test

* maybe in variables?

* variables get uppercased?

* drop py altogether on names

* fix variable typo

* maybe just os name

* try conditions

* re-combine some steps

* always with the variables

* more parameters

* more parameters

* condition can't see params?

* always can be in if

* bigger ifs

* display name last?

* try different variables

* back to conditions

* move import of nbformat to appropriate linter

* remove python3 refs

* split up build

* fix artifact names

* try using wheels/sdist

* pytest whole module

* accept jinja2 as a dependency, for now... use vdom if possible, later, or offer plain text (ick)

* gah, missed jinja on non-win

* wow, bad at this

* add environment for testing in windows with python 3.7

* bump the npm tools

* try old lts

* add command for now

* more verbose

* move stuff back

* execution_count normalizing

* try win37 a couple times
nrbgt added a commit to nrbgt/irobotframework that referenced this pull request May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0