Changeset 29587

Show
Ignore:
Timestamp:
02/05/09 22:37:20 (4 years ago)
Author:
drry
Message:
  • oops.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/migemo_hint.js

    r29585 r29587  
    11// Vimperator plugin: 'Hint Matching with XUL/Migemo' 
    2 // Last Change: 05-Feb-2009. Jan 2008 
     2// Last Change: 05-Feb-2009. 
    33// License: Creative Commons 
    44// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid 
    5 // Require: XUL/Migemo extension - https://addons.mozilla.org/ja/firefox/addon/5239 
     5// Require: XUL/Migemo extension - https://addons.mozilla.org/firefox/addon/5239 
    66// 
    7 // extended hint matching with migemo for vimperator1.2pre(16-Jun-2008) 
     7// extended hint matching with migemo for Vimperator 
    88// 
    99// Usage: 
    1010//  :set hintmatching = custom 
    11 lberator.plugins.customHintMatcher = function(inputString){ 
     11liberator.plugins.customHintMatcher = function(inputString){ 
    1212    var XMigemoCore; 
    1313    try{ 
    1414        XMigemoCore = Cc['@piro.sakura.ne.jp/xmigemo/factory;1'] 
    1515                                .getService(Components.interfaces.pIXMigemoFactory) 
    16                                 .getService("ja"); 
     16                                .getService('ja'); 
    1717        XMigemoTextUtils = Cc['@piro.sakura.ne.jp/xmigemo/text-utility;1'] 
    1818                                .getService(Ci.pIXMigemoTextUtils); 
     
    2121    var r = new RegExp(XMigemoTextUtils.getANDFindRegExpFromTerms(XMigemoCore.getRegExps(inputString)), 'gi'); 
    2222    return function(hintString) r.test(hintString); 
    23 } 
     23};