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灯, 水草

请输入看板名称,例如:WOW站内搜寻

TOP