-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add spec #142
Add spec #142
Conversation
CHANGELOG.md
Outdated
@@ -6,6 +6,7 @@ | |||
- Several file extensions are interpreted as LaTeX file ([#81](https://github.com/area/language-latex/pull/81), [#82](https://github.com/area/language-latex/pull/82), and | |||
[#126](https://github.com/area/language-latex/pull/126)) | |||
- Support for highlighting long lines ([#131](https://github.com/area/language-latex/pull/131)) | |||
- Added spec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this line on top of the file. Your PR will be published in a future release, not in v1.1.0, which is already out. Also please use imperative mood instead of past tense.
spec/latex-test-spec.coffee
Outdated
tk = grammar.tokenizeLines(s) | ||
expect(tk[0][14].scopes[1]).toBe 'string.other.math.tex' | ||
|
||
it "gets the language correct (python)", -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I'm not so familiar with how to write a spec, I'd like to keep it simple as a starting point at first. Would you please remove this listing section if you don't mind?
I really appreciate this because I wanted a spec but don't know how to start as in yudai-nkt/language-tex#7. I have some comments outside the review.
|
I made a new commit that I believe addresses all issues. Regarding point 1. I was looking into the |
Please resolve conflicts. |
Thanks. will take care of indentation on my end. |
Since the plan is to refactor the grammar (as discussed in #97) I thought it would be useful to have a spec/test suite. So I added one. This is a minimal working version but should be easily extensible. Spec passes on my machine.