To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorSyntax Checking for Mirah
As a user
I want to get annotations on syntax errors and warnings in Mirah files
- Background
-
- When
- I have opened "plugins/mirah/features/fixtures/test.mirah"
- Scenarios
-
- A syntax-clean Mirah file has no syntax error annotations
- A syntax-error in a Mirah file should cause syntax error annotations
- A syntax-warning in a Mirah file should cause syntax warning annotations
- Fixing a syntax-error in a Mirah file should cause syntax error annotations to vanish
- Fixing a syntax-warning in a Mirah file should cause syntax error annotations to vanish
- A syntax-clean Mirah file has no syntax error annotations
-
- When
- I replace the contents with "def foo\n bar\nend"
- And
- I save the tab
- And
- I wait 2 seconds
- Then
- the tab should not have annotations
- A syntax-error in a Mirah file should cause syntax error annotations
-
- When
- I replace the contents with "def foo\n => bar\nend"
- And
- I save the tab
- And
- I wait 2 seconds
- Then
- the tab should have annotations
- And
- the tab should have an annotation on line 2
- A syntax-warning in a Mirah file should cause syntax warning annotations
-
- When
- I replace the contents with "def foo\n end"
- And
- I save the tab
- And
- I wait 2 seconds
- Then
- the tab should have annotations
- And
- the tab should have an annotation on line 2
- Fixing a syntax-error in a Mirah file should cause syntax error annotations to vanish
-
- When
- I replace the contents with "def foo\n => bar\nend"
- And
- I save the tab
- And
- I wait 2 seconds
- Then
- the tab should have annotations
- When
- I replace the contents with "def foo\n bar\nend"
- And
- I save the tab
- And
- I wait 2 seconds
- Then
- the tab should not have annotations
- Fixing a syntax-warning in a Mirah file should cause syntax error annotations to vanish
-
- When
- I replace the contents with "def foo\n end"
- And
- I save the tab
- And
- I wait 2 seconds
- Then
- the tab should have annotations
- When
- I replace the contents with "def foo\nend"
- And
- I save the tab
- And
- I wait 2 seconds
- Then
- the tab should not have annotations
Last published over 5 years ago by danlucraft.