Issue #311 - Clean up arabic.c, arabic.h, farsi.c, farsi.h. Tweaks to uncrustify.cfg.

This commit is contained in:
David Z. Chen 2014-03-06 15:10:19 -08:00 committed by Thiago de Arruda
parent 998541eb04
commit 0412ee7440
5 changed files with 3361 additions and 2382 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,9 @@
* Do ":help credits" in Vim to see a list of people who contributed.
*/
#ifndef SRC_ARABIC_H_
#define SRC_ARABIC_H_
/*
* Arabic characters are categorized into following types:
*
@ -256,3 +259,5 @@
/* Range of Arabic characters that might be shaped. */
#define ARABIC_CHAR(c) ((c) >= a_HAMZA && (c) <= a_MINI_ALEF)
#endif // SRC_ARABIC_H_

File diff suppressed because it is too large Load Diff

View File

@ -6,8 +6,8 @@
* Do ":help credits" in Vim to see a list of people who contributed.
*/
#ifndef NEOVIM_FARSI_H
#define NEOVIM_FARSI_H
#ifndef SRC_FARSI_H_
#define SRC_FARSI_H_
/*
* Farsi characters are categorized into following types:
@ -186,46 +186,49 @@
#define W_CONV 0x1
#define W_R_L 0x2
/* special Farsi text messages */
EXTERN char_u farsi_text_1[]
#ifdef DO_INIT
= { YE_, _SIN, RE, ALEF_, _FE, ' ', 'V', 'I', 'M',
' ', F_HE, _BE, ' ', SHIN, RE, _GAF, DAL,' ', NOON,
ALEF_, _YE, ALEF_, _PE, '\0'}
EXTERN char_u farsi_text_1[] = {
YE_, _SIN, RE, ALEF_, _FE, ' ', 'V', 'I', 'M',
' ', F_HE, _BE, ' ', SHIN, RE, _GAF, DAL, ' ', NOON,
ALEF_, _YE, ALEF_, _PE, '\0'
};
#else
EXTERN char_u farsi_text_1[];
#endif
;
EXTERN char_u farsi_text_2[]
#ifdef DO_INIT
= { YE_, _SIN, RE, ALEF_, _FE, ' ', FARSI_3, FARSI_3,
EXTERN char_u farsi_text_2[] = {
YE_, _SIN, RE, ALEF_, _FE, ' ', FARSI_3, FARSI_3,
FARSI_4, FARSI_2, ' ', DAL, RE, ALEF, DAL, _NOON,
ALEF_, _TE, _SIN, ALEF, ' ', F_HE, _BE, ' ', SHIN,
RE, _GAF, DAL, ' ', NOON, ALEF_, _YE, ALEF_, _PE, '\0'}
RE, _GAF, DAL, ' ', NOON, ALEF_, _YE, ALEF_, _PE, '\0'
};
#else
EXTERN char_u farsi_text_2[];
#endif
;
EXTERN char_u farsi_text_3[]
#ifdef DO_INIT
= { DAL, WAW, _SHIN, _YE, _MIM, _NOON, ' ', YE_, _NOON,
ALEF_,_BE, _YE, _TE, _SHIN, _PE, ' ', 'R','E','P','L',
'A','C','E', ' ', NOON, ALEF_, _MIM, RE, _FE, ZE, ALEF,
EXTERN char_u farsi_text_3[] = {
DAL, WAW, _SHIN, _YE, _MIM, _NOON, ' ', YE_, _NOON,
ALEF_, _BE, _YE, _TE, _SHIN, _PE, ' ', 'R', 'E', 'P', 'L',
'A', 'C', 'E', ' ', NOON, ALEF_, _MIM, RE, _FE, ZE, ALEF,
' ', 'R', 'E', 'V', 'E', 'R', 'S', 'E', ' ', 'I', 'N',
'S', 'E', 'R', 'T', ' ', SHIN, WAW, RE, ' ', ALEF_, _BE,
' ', YE_, _SIN, RE, ALEF_, _FE, ' ', RE, DAL, ' ', RE,
ALEF_, _KAF,' ', MIM, ALEF_, _GAF, _NOON, _HE, '\0'}
ALEF_, _KAF, ' ', MIM, ALEF_, _GAF, _NOON, _HE, '\0'
};
#else
EXTERN char_u farsi_text_3[];
#endif
;
EXTERN char_u farsi_text_5[]
#ifdef DO_INIT
= { ' ', YE_, _SIN, RE, ALEF_, _FE, '\0'}
EXTERN char_u farsi_text_5[] = {
' ', YE_, _SIN, RE, ALEF_, _FE, '\0'
};
#else
EXTERN char_u farsi_text_5[];
#endif
;
#endif /* NEOVIM_FARSI_H */
#endif // SRC_FARSI_H_

View File

@ -164,7 +164,7 @@ indent_switch_case = 0 # number
# Spaces to shift the 'case' line, without affecting any other lines
# Usually 0.
indent_case_shift = 1 # number
indent_case_shift = 0 # number
# Spaces to indent '{' from 'case'.
# By default, the brace will appear under the 'c' in case.
@ -177,7 +177,7 @@ indent_col1_comment = true # false/true
# How to indent goto labels
# >0 : absolute column where 1 is the leftmost column
# <=0 : subtract from brace indent
indent_label = 1 # number
indent_label = 0 # number
# Same as indent_label, but for access specifiers that are followed by a colon
indent_access_spec = 1 # number
@ -733,7 +733,7 @@ align_var_def_span = 0 # number
# 0=Part of the type 'void * foo;'
# 1=Part of the variable 'void *foo;'
# 2=Dangling 'void *foo;'
align_var_def_star_style = 0 # number
align_var_def_star_style = 1 # number
# How to align the '&' in variable definitions.
# 0=Part of the type
@ -1222,7 +1222,7 @@ pos_arith = ignore # ignore/join/lead/lead_brea
pos_assign = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
# The position of boolean operators in wrapped expressions
pos_bool = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
pos_bool = trail_break # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force
# The position of comparison operators in wrapped expressions
pos_compare = ignore # ignore/join/lead/lead_break/lead_force/trail/trail_break/trail_force