Triply-Dev / YASGUI.YASQE-deprecated

Deprecated, see https://github.com/TriplyDB/Yasgui for the Yasgui monorepo
MIT License
73 stars 36 forks source link

Improve indentation #98

Closed wouterbeek closed 7 years ago

wouterbeek commented 7 years ago

Indentation is sometimes a bit unpredictable / illogical. I will illustrate this with some concrete cases.

Pressing ENTER after a WHERE clause indents 4 spaces, but we are outside of any for of nesting, so I was expecting indentation to be zero here:

select * {
  :s [:p :o ]
}
    *HERE*

Pressing ENTER at the position marked *HERE* changes the indentation of that line (it moves to the left):

select * {
  :a :b [
    :c [
      :d :e*HERE*
LaurensRietveld commented 7 years ago

closed. your second use case is covered, your first one isnt (as that isnt a valid sparql query)