Comments (1)
- I'd like to see DELETE and USING added to the keyword list.
These seems to be very specific to database you use. For delete from I have your example, but "USING" I'm not sure what it is actualy (is it something like "MERGE INTO ... USING ..."?)
On a related note:
"DELETE FROM" was added with commit 3fdf59b.
But it is for syntax like "DELETE FROM tab_name ..", what you describe in examples have different syntax. Could you say what kind of DB uses such syntax? (i.e. "DELETE [col_list] FROM tab ...")
If you provide example of 'USING' I think I can add these keywords.
- Statements starting with DELETE seem to turn formatting off.
"turn-off" is not completely precise. I would say it just does not "turn on" :)
Single word "DELETE" is treated as just any other not-special word.
and formatting of many keywords depend on what keywords were encountered before.
I can not just make formating enable-always for each keyword always, because couple of words in different contexts should be formatted differently (e.g. "SELECT c1 FROM tab" and "SELECT extract(day from date) FROM tab")
- I also find it curious that most formatted lines seem to begin with a space.
Not sure if I get what you mean. Could you describe the issue a bit more?
According to excerpt from configuration file that you pasted, most of those keywords should be at the beginning of new line - so no spaces/tabs should appear before them. (not counting indentation for sub-query content)
from fsqlf.
Related Issues (10)
- Location of formatting.conf HOT 4
- After formatting INNER JOIN turn into JOIN HOT 3
- ~/.fsqlf/ support under Windows HOT 1
- add correction of formatting
- Doesn't handle + & etc. in text strings
- bits/libc-header-start.h: No such file or directory HOT 2
- [feature wish] `cli` make target
- bug
- no proper support for escaped symbols HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsqlf.