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

Fix indentation #163

Merged
merged 3 commits into from
Mar 3, 2017
Merged

Fix indentation #163

merged 3 commits into from
Mar 3, 2017

Conversation

Matafou
Copy link
Contributor

@Matafou Matafou commented Mar 3, 2017

Fixes #147 and #91. + other glitches in indentation.

While fixing these I discovered several flaws in indentation (what a
suprise). The probem is the following: since we don't have a precise
grammar of tactics, smie often decides that the parent of a sub-part
of a tactic is the previous command instead of the current tacic.

Typical example (fixed now but in general):

             foo.
  apply bar
             with bar'.

Since "apply ... bar'" is considered as one leaf of the grammar, it is
considered to be a child of the previous dot.

     .
     /\
    /  \
  foo  apply...bar'

Therefore indentation of "with" wants to align with parent "." and
hence with "foo".

Basically we should try to define a much more precise grammar of
complex tactics (with with, as, using etc) in order to fix the
problem. Of course this has the drawback of making impossible to
support user tactic notations.
@Matafou Matafou merged commit 35f006a into master Mar 3, 2017
@erikmd erikmd deleted the fix_indentation branch February 20, 2018 23:41
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.

1 participant