mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.0227
This commit is contained in:
parent
ea0cd36bdd
commit
a83c3e0ebd
@ -1,14 +1,14 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: C-shell (tcsh)
|
" Language: C-shell (tcsh)
|
||||||
" Maintainer: Gautam Iyer <gautam@math.uchicago.edu>
|
" Maintainor: Gautam Iyer <gautam@math.uchicago.edu>
|
||||||
" Last Modified: Mon 23 Feb 2004 02:28:51 PM CST
|
" Last Modified: Sat 11 Mar 2006 11:16:47 AM CST
|
||||||
"
|
"
|
||||||
" Description: We break up each statement into a "command" and an "end" part.
|
" Description: We break up each statement into a "command" and an "end" part.
|
||||||
" All groups are either a "command" or part of the "end" of a statement (ie
|
" All groups are either a "command" or part of the "end" of a statement (ie
|
||||||
" everything after the "command"). This is because blindly highlighting tcsh
|
" everything after the "command"). This is because blindly highlighting tcsh
|
||||||
" statements as keywords caused way too many false positives. Eg:
|
" statements as keywords caused way too many false positives. Eg:
|
||||||
"
|
"
|
||||||
" set history=200
|
" set history=200
|
||||||
"
|
"
|
||||||
" causes history to come up as a keyword, which we want to avoid.
|
" causes history to come up as a keyword, which we want to avoid.
|
||||||
|
|
||||||
@ -165,8 +165,8 @@ hi def link tcshExprOp tcshOperator
|
|||||||
hi def link tcshExprEnd tcshOperator
|
hi def link tcshExprEnd tcshOperator
|
||||||
hi def link tcshComment comment
|
hi def link tcshComment comment
|
||||||
hi def link tcshCommentTi preproc
|
hi def link tcshCommentTi preproc
|
||||||
hi def link tcshCommentSp WarningMsg
|
hi def link tcshCommentSp tcshCommentTi
|
||||||
hi def link tcshSharpBang preproc
|
hi def link tcshSharpBang tcshCommentTi
|
||||||
hi def link tcshTodo todo
|
hi def link tcshTodo todo
|
||||||
hi def link tcshSQuote constant
|
hi def link tcshSQuote constant
|
||||||
hi def link tcshDQuote tcshSQuote
|
hi def link tcshDQuote tcshSQuote
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#
|
#
|
||||||
# OLE interface: OLE=yes (usually with GUI=yes)
|
# OLE interface: OLE=yes (usually with GUI=yes)
|
||||||
#
|
#
|
||||||
# Multibyte support: MBYTE=yes
|
# Multibyte support: MBYTE=yes (default is no)
|
||||||
#
|
#
|
||||||
# IME support: IME=yes (requires GUI=yes)
|
# IME support: IME=yes (requires GUI=yes)
|
||||||
# DYNAMIC_IME=[yes or no] (to load the imm32.dll dynamically, default
|
# DYNAMIC_IME=[yes or no] (to load the imm32.dll dynamically, default
|
||||||
|
@ -7880,9 +7880,13 @@ nv_g_cmd(cap)
|
|||||||
/*
|
/*
|
||||||
* "g8": Display the bytes used for the UTF-8 character under the
|
* "g8": Display the bytes used for the UTF-8 character under the
|
||||||
* cursor. It is displayed in hex.
|
* cursor. It is displayed in hex.
|
||||||
|
* "8g8" finds illegal byte sequence.
|
||||||
*/
|
*/
|
||||||
case '8':
|
case '8':
|
||||||
show_utf8();
|
if (cap->count0 == 8)
|
||||||
|
utf_find_illegal();
|
||||||
|
else
|
||||||
|
show_utf8();
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
18
src/os_vms.c
18
src/os_vms.c
@ -298,35 +298,35 @@ vms_sys_status(int status)
|
|||||||
int
|
int
|
||||||
vms_read(char *inbuf, size_t nbytes)
|
vms_read(char *inbuf, size_t nbytes)
|
||||||
{
|
{
|
||||||
int status, function, len;
|
int status, function, len;
|
||||||
TT_MODE tt_mode;
|
TT_MODE tt_mode;
|
||||||
ITEM itmlst[2]; /* terminates on everything */
|
ITEM itmlst[2]; /* terminates on everything */
|
||||||
static long trm_mask[8] = {-1, -1, -1, -1, -1, -1, -1, -1};
|
static long trm_mask[8] = {-1, -1, -1, -1, -1, -1, -1, -1};
|
||||||
|
|
||||||
/* whatever happened earlier we need an iochan here */
|
/* whatever happened earlier we need an iochan here */
|
||||||
if (!iochan)
|
if (!iochan)
|
||||||
tt_mode = get_tty();
|
tt_mode = get_tty();
|
||||||
|
|
||||||
/* important: clean the inbuf */
|
/* important: clean the inbuf */
|
||||||
memset(inbuf, 0, nbytes);
|
memset(inbuf, 0, nbytes);
|
||||||
|
|
||||||
/* set up the itemlist for the first read */
|
/* set up the itemlist for the first read */
|
||||||
vul_item(&itmlst[0], 0, TRM$_MODIFIERS,
|
vul_item(&itmlst[0], 0, TRM$_MODIFIERS,
|
||||||
(char *)( TRM$M_TM_NOECHO | TRM$M_TM_NOEDIT |
|
(char *)( TRM$M_TM_NOECHO | TRM$M_TM_NOEDIT |
|
||||||
TRM$M_TM_NOFILTR | TRM$M_TM_TRMNOECHO |
|
TRM$M_TM_NOFILTR | TRM$M_TM_TRMNOECHO |
|
||||||
TRM$M_TM_NORECALL) , 0);
|
TRM$M_TM_NORECALL) , 0);
|
||||||
vul_item(&itmlst[1], sizeof(trm_mask), TRM$_TERM, (char *)&trm_mask, 0);
|
vul_item(&itmlst[1], sizeof(trm_mask), TRM$_TERM, (char *)&trm_mask, 0);
|
||||||
|
|
||||||
/* wait forever for a char */
|
/* wait forever for a char */
|
||||||
function = (IO$_READLBLK | IO$M_EXTEND);
|
function = (IO$_READLBLK | IO$M_EXTEND);
|
||||||
status = sys$qiow(0, iochan, function, &iosb, 0, 0,
|
status = sys$qiow(0, iochan, function, &iosb, 0, 0,
|
||||||
inbuf, nbytes-1, 0, 0, &itmlst, sizeof(itmlst));
|
inbuf, nbytes-1, 0, 0, &itmlst, sizeof(itmlst));
|
||||||
len = strlen(inbuf); /* how many chars we got? */
|
len = strlen(inbuf); /* how many chars we got? */
|
||||||
|
|
||||||
/* read immedatelly the rest in the IO queue */
|
/* read immedatelly the rest in the IO queue */
|
||||||
function = (IO$_READLBLK | IO$M_TIMED | IO$M_ESCAPE | IO$M_NOECHO | IO$M_NOFILTR);
|
function = (IO$_READLBLK | IO$M_TIMED | IO$M_ESCAPE | IO$M_NOECHO | IO$M_NOFILTR);
|
||||||
status = sys$qiow(0, iochan, function, &iosb, 0, 0,
|
status = sys$qiow(0, iochan, function, &iosb, 0, 0,
|
||||||
inbuf+len, nbytes-1-len, 0, 0, 0, 0);
|
inbuf+len, nbytes-1-len, 0, 0, 0, 0);
|
||||||
|
|
||||||
len = strlen(inbuf); /* return the total length */
|
len = strlen(inbuf); /* return the total length */
|
||||||
|
|
||||||
|
@ -7,12 +7,12 @@
|
|||||||
123456
|
123456
|
||||||
1234567
|
1234567
|
||||||
12345678
|
12345678
|
||||||
123456789
|
|
||||||
456789
|
456789
|
||||||
3456789
|
3456789
|
||||||
23456789
|
23456789
|
||||||
123456789
|
123456789
|
||||||
123456789
|
123456789
|
||||||
|
123456789
|
||||||
123456
|
123456
|
||||||
2222 -----
|
2222 -----
|
||||||
123456abc
|
123456abc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user