PHP 板


LINE

看板 PHP  RSS
我在練習php時使用vim作為editor,在開啟hello.php時跳出下面的錯誤訊息 但是將檔名更改為hello.html時卻又沒有問題 PHP5,Vim 7.1的版本 「處理 /usr/share/vim/vim71/syntax/php.vim 時發生錯誤: 行 479: E10: \ 後面應該有 / ? 或 & 行 482: E10: \ 後面應該有 / ? 或 & 行 488: E10: \ 後面應該有 / ? 或 & 行 489: E10: \ 後面應該有 / ? 或 & 行 490: E10: \ 後面應該有 / ? 或 & 行 491: E10: \ 後面應該有 / ? 或 & 行 492: E10: \ 後面應該有 / ? 或 & 行 493: E10: \ 後面應該有 / ? 或 & 行 494: E10: \ 後面應該有 / ? 或 & 行 495: E10: \ 後面應該有 / ? 或 & 行 496: E10: \ 後面應該有 / ? 或 & 行 497: E10: \ 後面應該有 / ? 或 & 行 498: E10: \ 後面應該有 / ? 或 & 行 499: E10: \ 後面應該有 / ? 或 & 行 500: E10: \ 後面應該有 / ? 或 & 行 501: E10: \ 後面應該有 / ? 或 & 行 502: E10: \ 後面應該有 / ? 或 & 行 503: E10: \ 後面應該有 / ? 或 & 行 504: E10: \ 後面應該有 / ? 或 & 行 505: E10: \ 後面應該有 / ? 或 & 行 511: E10: \ 後面應該有 / ? 或 & 行 512: E10: \ 後面應該有 / ? 或 & 行 535: E10: \ 後面應該有 / ? 或 &」 我有到php.vim檔裡面去看過,卻看不出個所以然來,以下是我479~535行的內容 「 \ __construct __destruct __call __toString __sleep __wakeup __set __get __unset __isset __clone __set_state " Highlighting for __autoload slightly different from line above syntax keyword phpSpecialFunction containedin=ALLBUT,phpComment,phpStringDouble,phpStringSingle,phpIdentifier,phpMethodsVar \ __autoload highlight link phpSpecialFunction phpOperator " Highlighting for PHP5's built-in classes " - built-in classes harvested from get_declared_classes() in 5.1.4 syntax keyword phpClasses containedin=ALLBUT,phpComment,phpStringDouble,phpStringSingle,phpIdentifier,phpMethodsVar \ stdClass __PHP_Incomplete_Class php_user_filter Directory ArrayObject \ Exception ErrorException LogicException BadFunctionCallException BadMethodCallException DomainException \ RecursiveIteratorIterator IteratorIterator FilterIterator RecursiveFilterIterator ParentIterator LimitIterator \ CachingIterator RecursiveCachingIterator NoRewindIterator AppendIterator InfiniteIterator EmptyIterator \ ArrayIterator RecursiveArrayIterator DirectoryIterator RecursiveDirectoryIterator \ InvalidArgumentException LengthException OutOfRangeException RuntimeException OutOfBoundsException \ OverflowException RangeException UnderflowException UnexpectedValueException \ PDO PDOException PDOStatement PDORow \ Reflection ReflectionFunction ReflectionParameter ReflectionMethod ReflectionClass \ ReflectionObject ReflectionProperty ReflectionExtension ReflectionException \ SplFileInfo SplFileObject SplTempFileObject SplObjectStorage \ XMLWriter LibXMLError XMLReader SimpleXMLElement SimpleXMLIterator \ DOMException DOMStringList DOMNameList DOMDomError DOMErrorHandler \ DOMImplementation DOMImplementationList DOMImplementationSource \ DOMNode DOMNameSpaceNode DOMDocumentFragment DOMDocument DOMNodeList DOMNamedNodeMap \ DOMCharacterData DOMAttr DOMElement DOMText DOMComment DOMTypeinfo DOMUserDataHandler \ DOMLocator DOMConfiguration DOMCdataSection DOMDocumentType DOMNotation DOMEntity \ DOMEntityReference DOMProcessingInstruction DOMStringExtend DOMXPath highlight link phpClasses phpFunctions " Highlighting for PHP5's built-in interfaces " - built-in classes harvested from get_declared_interfaces() in 5.1.4 syntax keyword phpInterfaces containedin=ALLBUT,phpComment,phpStringDouble,phpStringSingle,phpIdentifier,phpMethodsVar \ Iterator IteratorAggregate RecursiveIterator OuterIterator SeekableIterator \ Traversable ArrayAccess Serializable Countable SplObserver SplSubject Reflector highlight link phpInterfaces phpConstant " option defaults: if ! exists('php_special_functions') let php_special_functions = 1 endif if ! exists('php_alt_comparisons') let php_alt_comparisons = 1 endif if ! exists('php_alt_assignByReference') let php_alt_assignByReference = 1 endif if php_special_functions " Highlighting for PHP built-in functions which exhibit special behaviours " - isset()/unset()/empty() are not real functions. " - compact()/extract() directly manipulate variables in the local scope where " regular functions would not be able to. " - eval() is the token 'make_your_code_twice_as_complex()' function for PHP. " - user_error()/trigger_error() can be overloaded by set_error_handler and also " have the capacity to terminate your script when type is E_USER_ERROR. syntax keyword phpSpecialFunction containedin=ALLBUT,phpComment,phpStringDouble,phpStringSingle \ user_error trigger_error isset unset eval extract compact empty」 請問這樣是我哪邊設定有出問題呢?? --



※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.117.181.31 ※ 編輯: zqpm 來自: 140.117.181.31 (07/06 00:32)
1F:推 ybite :你的Linux/BSD/Cygwin套裝是? 07/06 00:49
2F:→ zqpm :Ubuntu 7.10 AMD64版本 07/06 11:29
3F:推 albb0920 :重抓php.vim... 07/06 14:28
4F:→ zqpm :我到http://www.vim.org/scripts/重新抓取php.vim 07/06 16:09
5F:→ zqpm :結果還是出現一樣的訊息 07/06 16:09
6F:推 HuangJC :老實說,就算重抓可解,我還是對這個檔可以引發這種問 07/06 17:16
7F:→ HuangJC :題有興趣;文書編輯不應該介入這種問題吧.. 07/06 17:16
8F:→ MOONRAKER :你怎麼會自動用 \ 來續行 多此一舉 去掉那些 \ 07/06 19:07
9F:→ zqpm :那些\不是我加的阿^^"他本來就存在的.... 07/07 00:29
10F:→ zqpm :修復完畢,現在不會出現error message了 07/07 01:21
11F:→ zqpm :似乎是把\作為另一行來讀了,所以才會出現這個問題 07/07 01:22
12F:→ zqpm :謝謝各位大大的建議, 將\去掉並把前後行接續起來就ok 07/07 01:23







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:Tech_Job站內搜尋

TOP