mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Tweak a few more things in preparation for upcoming pgindent run.
These adjustments adjust code and comments in minor ways to prevent pgindent from mangling them. Among other things, I tried to avoid situations where pgindent would emit "a +b" instead of "a + b", and I tried to avoid having it break up inline comments across multiple lines.
This commit is contained in:
@ -1338,9 +1338,10 @@ NIImportOOAffixes(IspellDict *Conf, const char *filename)
|
||||
|| (sflaglen > 2 && Conf->flagMode == FM_LONG))
|
||||
goto nextline;
|
||||
|
||||
/*
|
||||
/*--------
|
||||
* Affix header. For example:
|
||||
* SFX \ N 1
|
||||
*--------
|
||||
*/
|
||||
if (fields_read == 4)
|
||||
{
|
||||
@ -1350,9 +1351,10 @@ NIImportOOAffixes(IspellDict *Conf, const char *filename)
|
||||
else
|
||||
flagflags = 0;
|
||||
}
|
||||
/*
|
||||
/*--------
|
||||
* Affix fields. For example:
|
||||
* SFX \ 0 Y/L [^Y]
|
||||
* SFX \ 0 Y/L [^Y]
|
||||
*--------
|
||||
*/
|
||||
else
|
||||
{
|
||||
|
@ -311,7 +311,8 @@ pushval_morph(Datum opaque, TSQueryParserState state, char *strval, int lenval,
|
||||
}
|
||||
}
|
||||
|
||||
pos = prs.words[count].pos.pos; /* save current word's position */
|
||||
/* save current word's position */
|
||||
pos = prs.words[count].pos.pos;
|
||||
|
||||
/* Go through all variants obtained from this token */
|
||||
cntvar = 0;
|
||||
@ -343,7 +344,11 @@ pushval_morph(Datum opaque, TSQueryParserState state, char *strval, int lenval,
|
||||
}
|
||||
|
||||
if (cntpos)
|
||||
pushOperator(state, data->qoperator, 1); /* distance may be useful */
|
||||
{
|
||||
/* distance may be useful */
|
||||
pushOperator(state, data->qoperator, 1);
|
||||
}
|
||||
|
||||
cntpos++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user