C / C++


C/C++向けの設定

1.png

色分け設定

wz:color.cfgに以下の行を追加する
割と重め
キーワード関係は割と適当。その都度追加していました。やりすぎると(完璧にすると)WZがヒーヒーいっちゃうので。

<mh>
:M AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Message-Id: <.2003527125.72428800.156994365.163875535>
Subject: Cプログラム

area(use=1;rgb="0x00FF40";atr=0): " " \"
area(use=1;rgb="0x00FF40";atr=0): L" " \"
area(use=1;rgb="0x00FF40";atr=0): ' ' \'
areaw(use=0;rgb="0x8EC8C8";atr=0): /* */
rear(use=1;rgb="0xFFA4F3";atr=0): ///
rear(use=1;rgb="0x8EC8C8";atr=0): //
reword(use=1;rgb="0xFFFF00";atr=2;re=1;flag=2): \x24Name:.*\x24
reword(use=1;rgb="0xFFFF00";atr=2;re=1;flag=2): \x24Author:.*\x24
reword(use=1;rgb="0xFFFF00";atr=2;re=1;flag=2): \x24Date:.*\x24
reword(use=1;rgb="0xFFFF00";atr=2;re=1;flag=2): \x24Revision:.*\x24
reword(use=1;rgb="0xFFFF00";atr=2;re=1;flag=2): \x24RCSfile:.*\x24
reword(use=1;rgb="0xFFFF00";atr=2;re=1;flag=2): \x24Source:.*\x24
reword(use=1;rgb="0xFFFF00";atr=2;re=1;flag=2): \x24Log:.*\x24
reword(use=1;rgb="0xFFFF00";atr=2;re=1;flag=2): \x24State:.*\x24
reword(use=1;rgb="0xFFFF00";atr=2;re=1;flag=2): \x24Locker:.*\x24
reword(use=1;rgb="0xFFFF00";atr=2;re=1;flag=2): \x24Id:.*\x24
reword(use=1;rgb="0xFFFF00";atr=2;re=1;flag=2): \x24Header:.*\x24
words(use=1;rgb="0x55AAFF";atr=0): ##
reword(use=1;rgb="0xFFFF80";atr=0;re=1): #\w+
reword(use=1;rgb="0x55AAFF";atr=1;re=1): #\s*define
reword(use=1;rgb="0x55AAFF";atr=1;re=1): #\s*elif
reword(use=1;rgb="0x55AAFF";atr=1;re=1): #\s*else
reword(use=1;rgb="0x55AAFF";atr=1;re=1): #\s*endif
reword(use=1;rgb="0x55AAFF";atr=1;re=1): #\s*error
reword(use=1;rgb="0x55AAFF";atr=1;re=1): #\s*if
reword(use=1;rgb="0x55AAFF";atr=1;re=1): #\s*ifdef
reword(use=1;rgb="0x55AAFF";atr=1;re=1): #\s*ifndef
reword(use=1;rgb="0x55AAFF";atr=1;re=1): #\s*include
reword(use=1;rgb="0x55AAFF";atr=1;re=1): #\s*line
reword(use=1;rgb="0x55AAFF";atr=1;re=1): #\s*pragma
reword(use=1;rgb="0x55AAFF";atr=1;re=1): #\s*undef
reword(use=1;rgb="0xFFFF00";atr=0;re=1): <[\+\-]?0[xX][\da-fA-F]+[uUlL]?[uUlL]?>
reword(use=1;rgb="0xFFFF00";atr=0;re=1): <[\+\-]?\d+[uUlL]?[uUlL]?>
reword(use=1;rgb="0xFFFF00";atr=0;re=1): <[\+\-]?\d+\.\d+[fF]?>
words(use=1;rgb="0xAAAAFF";atr=0): defined . : * & -> ? void char int short long double float bool true false register unsigned signed static volatile extern const auto mutable inline virtual friend struct union class public private protected if else break continue for while do switch case default return new delete catch try throw static_cast dynamic_cast const_cast reinterpret_cast NULL asm enum typedef goto sizeof operator this template typename using namespace wchar_t
words(use=1;rgb="0x2FFFB1";atr=0): std accumulate adjacent_difference adjacent_find advance allocator allocator_type assign  at  auto_ptr back  back_insert_iterator back_inserter begin bidirectional_iterator_tag binary_function binary_negate binary_search bind1st bind2nd binder1st binder2nd bitset c_str capacity clear  const_iterator const_mem_fun1_ref_t const_mem_fun1_t const_mem_fun_ref_t const_mem_fun_t const_pointer const_reference const_reverse_iterator copy copy_backward count  count_if deque difference_type distance divides empty  end  equal equal_range  equal_to erase  fill fill_n find  find_end find_first_of find_if for_each forward_iterator_tag front front_insert_iterator front_inserter generate generate_n get_allocator  get_temporary_buffer greater greater_equal includes inner_product inplace_merge input_iterator_tag insert  insert_iterator inserter istream_iterator istreambuf_iterator iter_swap iterator iterator_traits key_comp key_compare key_type less less_equal lexicographical_compare list logical_and logical_not logical_or lower_bound make_heap map  mapped_type max max_element max_size mem_fun mem_fun1_ref_t mem_fun1_t mem_fun_ref mem_fun_ref_t mem_fun_t merge  min min_element minus mismatch modulus multimap multiplies multiset negate next_permutation not1 not2 not_equal_to nth_element ostream_iterator ostreambuf_iterator output_iterator_tag pair partial_sort partial_sort_copy partial_sum partition plus pointer pointer_to_binary_function pointer_to_unary_function pop  pop_back  pop_front  pop_heap prev_permutation priority_queue ptr_fun push push_back push_front push_heap queue random_access_iterator_tag random_shuffle raw_storage_iterator rbegin reference remove remove_copy remove_copy_if remove_if  rend  replace replace_copy replace_copy_if replace_if reserve  resize  return_temporary_buffer reverse reverse_copy reverse_iterator rotate rotate_copy search search_n set set_difference set_intersection set_symmetric_difference set_union size size_type sort sort_heap splice  stable_partition stable_sort stack std string swap swap_ranges top transform unary_function unary_negate uninitialized_copy uninitialized_fill uninitialized_fill_n unique unique_copy upper_bound value_comp  value_compare value_type vector wstring istrstream ostrstream strstream ifstream ofstream fstream istream ostream iostream filebuf strstreambuf ios
words(use=1;rgb="0xFF8040";atr=0): boost bind ref cref shared_ptr shared_array scoped_ptr scoped_array prior next lexical_cast char_separator format tokenizer array wsmatch regex_search wregex smatch
words(use=1;rgb="0xF9E8A4";atr=0): mchar txstr permanent wchar tchar TEXTCHAR textvar TX IBUFF TXCHAR BBOOL FBOOL NPARA NLINE IFILE CBOOL NPAGE
words(use=1;rgb="0xF9E8A4";atr=0): AnsiString __fastcall TShiftState TStrings TMouseButton TCanvas TStringList TIniFile Exception hdrstop TRegistry TMemoryStream TFileStream TStream TCriticalSection TForm TObject TComponent Application __property TRichEdit
words(use=1;rgb="0xFFB380";atr=0): HANDLE HWND BOOL TRUE FALSE BYTE WORD DWORD UINT LONG INT SHORT LPVOID POINT LRESULT COLORREF RECT LPBYTE HBITMAP HBRUSH HCURSOR HDC HFONT HGLOBAL HPEN FILETIME LPARAM WPARAM HINSTANCE HINSTANCE LPSTR

アウトライン

見出し1

^//\{?###(.*)

見出し2

//##

見出し3

^[\w][^;/]*\([^;]*$