Autor Beitrag
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 18.11.05 21:39 
Hi, kann es sein, dass in www.delphi-forum.de/....php?p=311823#311823 ein paar Keywords beim Highlighten verschluckt werden\ignoriert werden?

Müsste das IF nicht gehighlightet erscheinen?

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Fr 18.11.05 21:55 
Wir haben als Grundlage für das SQL-Highlighting den SQL92-Standard verwendet. Ich habe leider gerade die Seite nicht mehr parat, auf der ich die SQL-Wörter gefunden habe, aber "if" war IIRC nicht mit drin. Es ist halt so, dass viele Datenbanken ihre eigenen SQL-Versionen implementieren und es zu zuvielen "falsch" erkannten Schlüsselwörtern käme, wenn wir alle überall highlighten würden.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Fr 18.11.05 22:19 
Ist mir auch aufgefallen. 8) Kann mir kaum vorstellen, daß ein "if" kein Schlüsselwort ist. Das ist sogar lochkartengeeignet und somit auch für C. :mrgreen:

_________________
Gruß
Hansa
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Fr 18.11.05 22:24 
user profile iconhansa hat folgendes geschrieben:
Kann mir kaum vorstellen, daß ein "if" kein Schlüsselwort ist.
Finde 'ne Liste mit den Schlüsselnwörtern des SQL92-Standards, wo das drin steht. Ich werde auch nochmal suchen, aber nicht mehr heute ;-)

user profile iconhansa hat folgendes geschrieben:
Das ist sogar lochkartengeeignet und somit auch für C. :mrgreen:
C interessiert hier aber nicht 8)

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Fr 18.11.05 22:36 
Wir haben die Schlüsselwörter wie gesagt aus dem SQL-92 Standard, die Spezifikation dazu findet man hier

Darin findet man unter anderem diese Liste:
ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
<reserved word> ::=
                ABSOLUTE | ACTION | ADD | ALL | ALLOCATE | ALTER | AND
              | ANY | ARE | AS | ASC
              | ASSERTION | AT | AUTHORIZATION | AVG
              | BEGIN | BETWEEN | BIT | BIT_LENGTH | BOTH | BY
              | CASCADE | CASCADED | CASE | CAST | CATALOG | CHAR | CHARACTER | CHAR_
              LENGTH
              | CHARACTER_LENGTH | CHECK | CLOSE | COALESCE | COLLATE | COLLATION

              | COLUMN | COMMIT | CONNECT | CONNECTION | CONSTRAINT
              | CONSTRAINTS | CONTINUE
              | CONVERT | CORRESPONDING | COUNT | CREATE | CROSS | CURRENT
              | CURRENT_DATE | CURRENT_TIME | CURRENT_TIMESTAMP | CURRENT_
              USER | CURSOR
              | DATE | DAY | DEALLOCATE | DEC | DECIMAL | DECLARE | DEFAULT | DEFERRABLE

              | DEFERRED | DELETE | DESC | DESCRIBE | DESCRIPTOR | DIAGNOSTICS

              | DISCONNECT | DISTINCT | DOMAIN | DOUBLE | DROP
              | ELSE | END | END-EXEC | ESCAPE | EXCEPT | EXCEPTION
              | EXEC | EXECUTE | EXISTS
              | EXTERNAL | EXTRACT
              | FALSE | FETCH | FIRST | FLOAT | FOR | FOREIGN | FOUND | FROM | FULL

              | GET | GLOBAL | GO | GOTO | GRANT | GROUP
              | HAVING | HOUR
              | IDENTITY | IMMEDIATE | IN | INDICATOR | INITIALLY | INNER | INPUT

              | INSENSITIVE | INSERT | INT | INTEGER | INTERSECT | INTERVAL | INTO | IS

              | ISOLATION
              | JOIN
              | KEY
              | LANGUAGE | LAST | LEADING | LEFT | LEVEL | LIKE | LOCAL | LOWER

              | MATCH | MAX | MIN | MINUTE | MODULE | MONTH
              | NAMES | NATIONAL | NATURAL | NCHAR | NEXT | NO | NOT | NULL

              | NULLIF | NUMERIC
              | OCTET_LENGTH | OF | ON | ONLY | OPEN | OPTION | OR
              | ORDER | OUTER
              | OUTPUT | OVERLAPS

              | PAD | PARTIAL | POSITION | PRECISION | PREPARE | PRESERVE | PRIMARY

              | PRIOR | PRIVILEGES | PROCEDURE | PUBLIC
              | READ | REAL | REFERENCES | RELATIVE | RESTRICT | REVOKE | RIGHT

              | ROLLBACK | ROWS
              | SCHEMA | SCROLL | SECOND | SECTION | SELECT | SESSION | SESSION_
              USER | SET
              | SIZE | SMALLINT | SOME | SPACE | SQL | SQLCODE | SQLERROR | SQLSTATE

              | SUBSTRING | SUM | SYSTEM_USER
              | TABLE | TEMPORARY | THEN | TIME | TIMESTAMP | TIMEZONE_
              HOUR | TIMEZONE_MINUTE
              | TO | TRAILING | TRANSACTION | TRANSLATE | TRANSLATION | TRIM | TRUE

              | UNION | UNIQUE | UNKNOWN | UPDATE | UPPER | USAGE | USER | USING

              | VALUE | VALUES | VARCHAR | VARYING | VIEW
              | WHEN | WHENEVER | WHERE | WITH | WORK | WRITE
              | YEAR
              | ZONE

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Fr 18.11.05 22:41 
Eure Liste ist trotzdem total out. Es gibt SQL99 und sogar schon SQL200X.

_________________
Gruß
Hansa
BenBE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 18.11.05 22:45 
Hab folgendes gefunden: www.postgresql.org/d...ic/syntax.htm#AEN426

Da ich MySQL gewohnt bin, hab ich mich etwas gewundert; da wird IF NOT EXISTS und sowas nämlich häufiger verwendet ;-) Schau einfach mal in dein phpMyAdmin :P

Ansonsten stimm ich hansa zu :P

Aber dass ihr nicht für jedes DB-System nen eigenen Highlighter schreiben werdet, dacht ich mir schon fast :P Aber zumindest könnte man sich an nen Standard halten der halbwegs recent ist ;-)

@Motzi: Siehe Hinweis unter dieser Liste:

www.contrib.andrew.c...adow/sql/sql1992.txt hat folgendes geschrieben:
Note: The list of <reserved word>s is considerably longer than
the analogous list of <key word>s in ISO/IEC 9075:1989. To assist
users of this International Standard avoid such words in a possible
future revision, the following list of potential <reserved word>s
is provided. Readers must understand that there is no guarantee
that all of these words will, in fact, become <reserved word>s
in any future revision; furthermore, it is almost certain that
additional words will be added to this list as any possible future
revision emerges.

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
          The words are: AFTER, ALIAS, ASYNC, BEFORE, BOOLEAN, BREADTH,
         COMPLETION, CALL, CYCLE, DATA, DEPTH, DICTIONARY, EACH, ELSEIF,
         EQUALS, GENERAL, IF, IGNORE, LEAVE, LESS, LIMIT, LOOP, MODIFY,
         NEW, NONE, OBJECT, OFF, OID, OLD, OPERATION, OPERATORS, OTHERS,
         PARAMETERS, PENDANT, PREORDER, PRIVATE, PROTECTED, RECURSIVE, REF,
         REFERENCING, REPLACE, RESIGNAL, RETURN, RETURNS, ROLE, ROUTINE,
         ROW, SAVEPOINT, SEARCH, SENSITIVE, SEQUENCE, SIGNAL, SIMILAR,
         SQLEXCEPTION, SQLWARNING, STRUCTURE, TEST, THERE, TRIGGER, TYPE,
         UNDER, VARIABLE, VIRTUAL, VISIBLE, WAIT, WHILE, and WITHOUT.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Fr 18.11.05 22:56 
hier ist noch eine Liste. Ist zwar für M$SQL, aber auf den ersten Blick paßt die auch zumindest für Firebird :

msdn.microsoft.com/l...ef/ts_ra-rz_9oj7.asp

_________________
Gruß
Hansa